代码片段: var particle = particles[i]; // 滚动到楼层模块,减少雪花 (自定义) if ($(window).scrollTop() < 1000) { particle.scale.x = particle.scale.y = 1; } else { if (i > particles.length / 5 * 3) { particle.scale.x = particle.scale.y = 0; } else { particle.scale.x = particle.scale.y = 0.8; } }