Shake Plugin Demo

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();

Shake Demo #1

Demo #2, more of a "head nod" shake. This uses 'easeInQuart' from the easing plugin.
$('#demo2').shake({duration: 220, easing: 'easeInQuart'});

Shake Demo #2

Demo #3, a wider, bouncy shake. Uses 'easeOutElastic' from the easing plugin.
$('#demo3').shake({distance: 60, duration: 350, easing: 'easeOutElastic'});

Shake Demo #3