L2Dwidget二次元前端添加人物插件
阅读原文时间:2023年07月09日阅读:2

如果想要在博客园上添加这个插件,只需要在设置的"页首html代码"中添加下面的js就行

<!-- 右下角live2d效果 -->
<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-shizuku@1.0.5/assets/shizuku.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>

初音:https://unpkg.com/live2d-widget-model-miku@1.0.5/assets/miku.model.json

黑猫:https://unpkg.com/live2d-widget-model-hijiki@1.0.5/assets/hijiki.model.json

萌娘:https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json

白猫:https://unpkg.com/live2d-widget-model-tororo@1.0.5/assets/tororo.model.json

狗狗:https://unpkg.com/live2d-widget-model-wanko@1.0.5/assets/wanko.model.json

萌娘:https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json

小帅哥: https://unpkg.com/live2d-widget-model-chitose@1.0.5/assets/chitose.model.json

小可爱(护):https://unpkg.com/live2d-widget-model-z16@1.0.5/assets/z16.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://github.com/EYHN/hexo-helper-live2d/blob/HEAD/README.zh-CN.md

https://github.com/xiazeyu/live2d-widget-models

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章