This code is taken from http://wilq32.googlepages.com/wilq32.rollimage222, and is supposed to animate an image rotation.
I can\'t figure out the structure exactly, and h
var rot
holds a reference to '#image3'
. Then rotation is given limits of 55 degrees counter clockwise and 25 degrees clockwise. No user visible action has taken place at this point. #image3 is enabled to receive rotateAnimation commands.
Then the bind section takes the content of the array which holds two objects to bind. The first binds the mouseover
of #image3 such that it will trigger a call to rotate rot[0]
, which is itself, 85 degrees clockwise. This does not travel 85 degrees, but is limited by the previous setting to only travel to 25 degrees.
The second does a similar thing with binding mouseout
so that it will travel to 35 degrees counter clockwise and this travel is not limited by the minAngle
.