2020-11-29 hexo 添加鼠标光粒追踪效果
参考 https://github.com/hustcc/canvas-nest.js/blob/master/README-zh.md
在 <body> 和 </body> 之间
添加如下代码即可
1 | <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
被墙了,已无法访问,故修改为如下地址:
1 | <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> |
本文作者:草梅友仁
本文地址: https://blog.cmyr.ltd/archives/fb39313c.html
版权声明:转载请注明出处!