JQVibrator is a funky jquery animation that either shakes the element up-down or left-right. Kind of a nodding effect.
Inspired by the Mac's login screen error, JQVibrator first came around when i was building the contact form for tarnfeldweb and needed some kind of unique error effect, then thought.. perhaps people might like it, so converted it into a plugin.
Check out the demo page for an example and pop along to the howto page to get the lo-down on how to use JQVibrator
Simply click the div you want to animate to see the effect, each box is wrapped in another div to hide it as it goes off screen, two inline .vibrate()'s would move eachother, try it and you'll see what i mean.
Up-Down
Left-Right
Take a look at the HowTo page for info on how to use this funky plugin!
Here is some sample code, it is the same we use for the demo, try running it in a browser console on the demo page for testing.
If you notice, you only use one method with JQVibrator, below are the actual methods and how to use them.
Here you will notice, the first attribute of .vibrate() is setting the animation to ud which stands for up-down and the second is declaring how far to vibrate, here it is 20px (no need for the "px" size). (above)
In this animation, the direction is lr which stands for left-right, in this case i want more of a vibrate animation than a wobble... so i have chosen 5px. (above)
To download JQVibrator, click the package download icon below, please do leave the copyright on the jquery.vibrator.js file just to be nice, even a link or post would be fantastic, just to market!
You can contact me at http://tarnfeldweb.info for any questions.
The most current version is at the top.