I have an issue where I have a div that is positioned absoutely and I want to animate it off the page upwards (I'm animating a person jumping off the screen).
However, I need the element to be bottom: 0, but when I want the animation to finish I want the image to have top: -600px.
When I write
$("#jumper").animate({
top: "-600px"
}, 2000, 'easeInBack' );
it sets top top to 0 and then starts the animation.
Perhaps there is a way to get the ypos of the element and set top with jQuery.css() on window load?
What should I do here?