jQuery nav elements that follow mouse movement
March 28, 2010 | Posted in jQuery | Tags: code, demo, jQuery, mouse, navigation, slider, snippet | add comments
I worked some more on the mouse tracker snippet from yesterday. I managed to smooth out the mouse following animation plus added an end animation that moves the nav button back to the middle after the mouse leaves the slider div.
There it is in action: Mouse Track 2 Demo.
Again, you need jQuery 1.3 for this to work. I’ve also added the easeInOutQuart transition on the mouseleave animation. So be sure to link the jQuery easing plug-in as well.
Here’s the code:
