please see – http://www.fiddyp.co.uk/animated-div-slide