how to animate following the mouse in jquery
OK, this works perfectly fine for following my mouse. // $(document).mousemove(function(e){ $("#follower").css({ 'top': e.pageY + 'px'; 'left': e.pageX + 'px'; }); }); // And this works great for animating the mouse to a clicked point // $(document).click(function(e){ $("#follower").animate({ top: e.pageY + 'px'; left: e.pageX + 'px'; }, 800); }); // But I personally feel that logically this SHOULD work! Coming from my point of view as the webscripter. Amd then my question is, how can I make this work. I want the #follower to try and follow my mouse with a dynamic kind of lagging behind feel.