简单的几行代码,就可以为你的博客添加萌萌的看版娘欧

实例请看本站侧边,[rihide]

<script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1000310197'%3E%3C/span%3E%3Cscript src='https://s5.cnzz.com/z_stat.php%3Fid%3D1000310197%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>


<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?3e8765b701bcb7a704e1b2ef3719283f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script>

<script>
    L2Dwidget.init({
        "model": {
            jsonPath: "https://unpkg.com/live2d-widget-model-hijiki@1.0.5/assets/hijiki.model.json",<!--这里改模型,前面后面都要改-->
            "scale": 1
        },
        "display": {
            "position": "left",<!--设置看板娘的上下左右位置-->
            "width": 150,
            "height": 300,
            "hOffset": 0,
            "vOffset": -20
        },
        "mobile": {
            "show": true,
            "scale": 0.5
        },
        "react": {
            "opacityDefault": 1.0,<!--设置透明度-->
            "opacityOnHover": 0.2
        }
    });
</script>

[/rihide]初始化的jsonPath为: https://unpkg.com/2D模型全名称@1.0.5/assets/模型.model.json

例如:https://unpkg.com/live2d-widget-model-chitose@1.0.5/assets/chitose.model.json

也可通过使用浏览器访问  https://unpkg.com/2D模型全名称@1.0.5/ 来查找对应的模型json地址,如https://unpkg.com/live2d-widget-model-chitose@1.0.5
https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.pose.json
2D模型全名称:

可替换的模型名称

2D模型全名称:

  • live2d-widget-model-chitose
  • live2d-widget-model-epsilon2_1
  • live2d-widget-model-gf
  • live2d-widget-model-haru/01 (use npm install –save live2d-widget-model-haru)
  • live2d-widget-model-haru/02 (use npm install –save live2d-widget-model-haru)
  • live2d-widget-model-haruto
  • live2d-widget-model-hibiki
  • live2d-widget-model-hijiki
  • live2d-widget-model-izumi
  • live2d-widget-model-koharu
  • live2d-widget-model-miku
  • live2d-widget-model-ni-j
  • live2d-widget-model-nico
  • live2d-widget-model-nietzsche
  • live2d-widget-model-nipsilon
  • live2d-widget-model-nito
  • live2d-widget-model-shizuku
  • live2d-widget-model-tororo
  • live2d-widget-model-tsumiki
  • live2d-widget-model-unitychan
  • live2d-widget-model-wanko
  • live2d-widget-model-z16

留下评论

您的电子邮箱地址不会被公开。