2022-04-14 如何在自己的网页中添加看板娘
2022-04-14 如何在自己的网页中添加看板娘
复制以下代码:
<script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script> <script> L2Dwidget.init({ "model": { //jsonpath控制显示那个小萝莉模型,下面这个就是我觉得最可爱的小萝莉模型,替换时后面名字也要替换掉 jsonPath: "https://unpkg.com/live2d-widget-model-koharu@1.0.5/assets/koharu.model.json", "scale": 1 }, "display": { "position": "left", //看板娘的表现位置 "width": 150, //小萝莉的宽度 "height": 300, //小萝莉的高度 "hOffset": 0, "vOffset": -20 }, "mobile": { "show": true, "scale": 0.5 }, "react": { "opacityDefault": 0.7, "opacityOnHover": 0.2 } }); </script>
注:本文转载至网络。
原文链接:http://t.csdn.cn/QoBrK
嗯。。原文也是转发别人的。
更改看板娘模型
在配置项中,“model”后面jsonPath对应的就是动画模型的json文件地址,不同模型,显示不同图形。 可选模型有:
小帅哥: https://unpkg.com/live2d-widget-model-chitose@1.0.5/assets/chitose.model.json
萌娘:https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json
小可爱(女):https://unpkg.com/live2d-widget-model-koharu@1.0.5/assets/koharu.model.json
小可爱(男):https://unpkg.com/live2d-widget-model-haruto@1.0.5/assets/haruto.model.json
初音:https://unpkg.com/live2d-widget-model-miku@1.0.5/assets/miku.model.json
金发妹子:https://unpkg.com/live2d-widget-model-z16@1.0.5/assets/z16.model.json
https://unpkg.com/live2d-widget-model-chitose/assets/chitose.model.json
https://unpkg.com/live2d-widget-model-epsilon2_1@1.0.5/assets/Epsilon2.1.model.json
猫:https://unpkg.com/live2d-widget-model-tororo@1.0.5/assets/tororo.model.json
https://unpkg.com/live2d-widget-model-tsumiki@1.0.5/assets/tsumiki.model.json
https://unpkg.com/live2d-widget-model-nietzsche@1.0.5/assets/nietzsche.model.json
————————————————
上面看板娘模型出处链接:https://blog.csdn.net/BiBbo/article/details/120695978