hexo 添加鼠标光粒追踪效果

参考 https://github.com/hustcc/canvas-nest.js/blob/master/README-zh.md

<body> 和 </body> 之间 添加如下代码即可

<script type="text/javascript" color="255,0,255" pointColor="255,0,255" opacity='0.7' zIndex="-2" count="100" src="https://cdn.jsdelivr.net/gh/hustcc/canvas-nest.js@latest/dist/canvas-nest.js"></script>

2022-5-19 更新

由于 cdn.jsdelivr.net 被墙了,已无法访问,故修改为如下地址:

<script type="text/javascript" color="255,0,255" pointColor="255,0,255" opacity='0.7' zIndex="-2" count="100" src="https://unpkg.com/canvas-nest.js@2.0.4/dist/canvas-nest.js"></script>

评论

发表回复