为你的博客领养一只小猫 - live2d

效果见右下角


代码:

<script src="http://xiaowiba.com/live2d_models/L2Dwidget.min.js"></script>
<script src="http://xiaowiba.com/live2d_models/L2Dwidget.0.min.js"></script>
<script>
    L2Dwidget.init({
        "model":{
            "scale":1,"hHeadPos":0.5,"vHeadPos":0.618,
            "jsonPath":"http://xiaowiba.com/live2d_models/live2d-widget-model-hijiki/assets/hijiki.model.json"
        },
        "display":{
            "superSample":2,"width":100,"height":220,"position":"right","hOffset":20,"vOffset":-20
        },
        "mobile":{
            "show":false,"scale":0.5
        },
        "react":{
            "opacityDefault":0.7,"opacityOnHover":0.2
        }
    });
</script>
<div id="live2d-widget">
    <canvas id="live2dcanvas" width="200" height="440" 
    style="position: fixed; opacity: 1; right: 0px; bottom: 0; z-index: 99999; pointer-events: none;"></canvas>
</div>
返回文章列表 打赏
本页链接的二维码
打赏二维码
期待你的评论

1 条评论
  1. 小熊 青铜   小熊  

    提示loadlive2d is not defined,显示不出来,求解答。