Will this work?
The reason I ask is because I want to animate two elements that calculate their end location based on the width of the document. If the window or document size is changed I want to reset the animation.
Any suggestions or other methods that might work?
Check out
resize: http://api.jquery.com/resize/