在页面中引入相应的鼠标跟随文件即可。
你好,那是因为作者用了是固定定位造成的,将它改成绝对定位即可
大概在每个相对应js文件的,80行左右将:
function Particle() { this.character = "*"; this.lifeSpan = 120; //ms this.initialStyles ={ "position: absolute;", "display: block;", "pointerEvents": "none", "z-index": "10000000", "fontSize": "16px", "will-change": "transform" };
改成:
function Particle() { this.character = "*"; this.lifeSpan = 120; //ms this.initialStyles = { "position": "fixed", "top": "0", "pointerEvents": "none", "z-index": "10000000", "fontSize": "16px", "will-change": "transform" };