var timestamp=0,mY=0;$(document).mousemove(function(n){var r=Date.now(),i;currentmY=n.screenY;var u=r-timestamp,f=Math.abs(currentmY-mY),t=Math.round(f/u*1e3);mY=currentmY;timestamp=r;$(".jp1").css("opacity",1-t/2e3);$(".jp2").css({top:t/100*(Math.random()-.5)*2+"px",left:0-t/2e3*(Math.random()-.5)*2+"%"});i=0;t>=3e3&&(i>=50&&$(".robot1").hasClass("robotOpacity")?i=0:(i++,$(".robot1").toggleClass("robotOpacity")))})