2020
10-08
10-08
jQuery 动态粒子效果示例代码
效果图1.js部分varRENDERER={PARTICLE_COUNT:1000,PARTICLE_RADIUS:1,MAX_ROTATION_ANGLE:Math.PI/60,TRANSLATION_COUNT:500,init:function(strategy){this.setParameters(strategy);this.createParticles();this.setupFigure();this.reconstructMethod();this.bindEvent();this.drawFigure();},setParameters:function(strategy){this.$window=$(window);this.$container=$('#jsi...
继续阅读 >