I have a quick script that has the cursor followed:
jQuery ). (Function () {$ (document) .mousemove (function (e) {$ ('. Fall'). (Function () {if ($ (this) .css ("opacity") == 0) {$ (This) .remove ();};}); t = (e.pavize - 10) .string () + 'px'; l = (e.pagex-10) .string () + 'px cas (" $ ('.') "$" ('.') "$" ('. Fall'). CSS ("margin_left", l); $ ('.'): Fixed ; Margin-left: '+ l +'; Margin-top: '+ + + + +; "& gt; + $ (' body '). Pre (doit); $ (' HTML (E. PageX + ',' + EAPGI) '; $ (' Declined '). ({Margin top: '+ = 50px', opacity: 0}, 1000);});}); Now I remove animate If the mouse is not running then the following would be like: $ ('. Fall'). Each (function () {$ (this). FadeOut ('slow'); $ (This) .remove ()}); I can not understand how to execute this when the mouse is not moving more like the other. Any ideas?
Thanks, and
Is it necessary for you?
last timemommy = new date (). GetTime (); Var t = setTimeout {var current time = new date (.) GetTime (); if (current time - last time> 1000) {$ ('. Fall'). Fade ('slow'); / / $ ('.fall'). Remove ();}}, 1000)
No comments:
Post a Comment