I\'m using a simple easing animation given here using JQUERY EASING PLUGIN
i.e.easing a div from left:200 to left:0 and back.(last example on above page)
$('#div1').animate(
{ left: 0 },
{ duration: 'slow', easing: 'easeOutBack' },
function(){
//Do what you want in here, it will be executed once the animation above is completed.
)};