moveElement http://www.webopixel.net/javascript/821.html
$('element').css('position', 'relative');
$('element').on('click', function() {
$(this).animate({
'left':'10px'
}, 20).animate({
'left':'-8px'
}, 20).animate({
'left':'6px'
}, 20).animate({
'left':'-4px'
}, 20).animate({
'left':'2px'
}, 20).animate({
'left':'-0px'
}, 20);
});