YUI: Animate Background Position

Click the link below to make the background position of the div animate.

Basically, this is an animation hack. What I did was create an element ( called holder ) and I am animating the top/left properties of it.

Then in the onTween event, I am copying the top/left setting of holder's position and setting the background position of the image on the div.

[Animate Background Position]

The Javascript