A super-simple jQuery plugin to make things shake back and forth. More info. Click on the boxes below.
Demo #1, the default, which is a springy shake.$('#demo1').shake();
Demo #2, more of a "head nod" shake. This uses 'easeInQuart' from the easing plugin.
$('#demo2').shake({duration: 220, easing: 'easeInQuart'});
Demo #3, a wider, bouncy shake. Uses 'easeOutElastic' from the easing plugin.
$('#demo3').shake({distance: 60, duration: 350, easing: 'easeOutElastic'});