个人笔记
<script src="https://l2dwidget.js.org/lib/L2Dwidget.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
L2Dwidget.init({
"model": {
jsonPath: "https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json", //萌娘
//jsonPath: "https://unpkg.com/live2d-widget-model-koharu@1.0.5/assets/koharu.model.json",
//jsonPath:"https://unpkg.com/live2d-widget-model-hijiki@1.0.5/assets/hijiki.model.json", //黑猫
//jsonPath:"https://unpkg.com/live2d-widget-model-tororo@1.0.5/assets/tororo.model.json", //白猫
//jsonPath:"https://unpkg.com/live2d-widget-model-wanko@1.0.5/assets/wanko.model.json", //狗狗
//jsonPath:"https://unpkg.com/live2d-widget-model-z16@1.0.5/assets/z16.model.json", //小可爱
//jsonPath:"https://unpkg.com/live2d-widget-model-hibiki@1.0.5/assets/hibiki.model.json",
//jsonPath:"https://unpkg.com/live2d-widget-model-nipsilon@1.0.5/assets/nipsilon.model.json",
//jsonPath:"https://unpkg.com/live2d-widget-model-tsumiki@1.0.5/assets/tsumiki.model.json",
"scale": 1
},
"display": {
"position": "right", //位置
"width": 300, //宽度
"height": 500, //高度
"hOffset": 0, //X距离
"vOffset": 0, //Y距离
},
"mobile": {
"show": true,
"scale": 1.3
},
"react": {
"opacityDefault": 0.8,
"opacityOnHover": 1
},
dialog: {
enable: true,
script: {
'tap body': '哎呀!别碰我!',
'tap face': '人家是在认真学前端的妹子',
}
},
});
</script>