wordpres美化-看板猫

article1个月前更新 done
353 0 0

效果图

wordpres美化-看板猫

 

在(header)自定义 js 代码区域添加如下,挂件自选

<!-- 左下角live2d效果 -->
<script src="https://l2dwidget.js.org/lib/L2Dwidget.min.js"></script>
<script>
    L2Dwidget.init({
        "model": {
            //jsonPath: "https://unpkg.com/live2d-widget-model-miku@1.0.5/assets/miku.model.json", //初音
            jsonPath: "https://unpkg.com/live2d-widget-model-hijiki@1.0.5/assets/hijiki.model.json", //黑猫
            //jsonPath: "https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.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-shizuku@1.0.5/assets/shizuku.model.json", //萌娘
            //jsonPath: "https://unpkg.com/live2d-widget-model-chitose@1.0.5/assets/chitose.model.json", //小帅哥
            //jsonPath: "https://unpkg.com/live2d-widget-model-z16@1.0.5/assets/z16.model.json", //小可爱(护)
            //jsonPath: "https://unpkg.com/live2d-widget-model-koharu@1.0.5/assets/koharu.model.json", //小可爱(女)
            //jsonPath: "https://unpkg.com/live2d-widget-model-haruto@1.0.5/assets/haruto.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>

代码取自博主 xiaofufu 原博客:L2Dwidget二次元前端添加人物插件

© 版权声明

暂无评论

暂无评论...