Check this fiddle: http://jsfiddle.net/j9rBz/1/
You have to specify position:relative
to the wrapper div, and position:absolute
to the image.
Also, keep the image hidden with display:none
and opacity:0
. Before animating starts you show()
the image and then specify opacity:1
as part of the animation.