mRotate.js is a plugin for mootools.js framework. It is an adaptation from jQueryRotate.js whose its author, Pawel Witkowski, defines it like “[...] a final product of a Wilq32.PhotoEffect Snippet. Actually you can use this simple and tiny script to get effect of rotated images directly from client side (for ex. user generated content), and animate them using own functions.”
Here are the several parameters :
({angle:angleValue,
[animateAngle:animateAngleValue],
[maxAngle:maxAngleValue],
[minAngle:minAngleValue],
[callback:callbackFunction],
[bind:[{event: function},{event:function} ] })
$(imgElement).rotateAnimation
Where each parameter means :
angleValue clockwise rotation given in degrees
[animateAngleValue] (optional) animate rotating into this value
[maxAngleValue] (optional) maximum angle possible for animation
[minAngleValue] (optional) minimum angle possible for animation
[callbackFunction] (optional) function to run after animation complete
[bind: [ {event: function}...] (optional) list of events binded to newly created rotateable object
Demo: http://www.piksite.com/mRotate/mRotate.html
Download: http://piksite.com/downloads/mRotate.zip
Source: http://www.piksite.com/mRotate/

Related Listings:
RSS feed for comments on this post. TrackBack URL
November 30th, 2009 at 2:17 am
[...] mRotate Pictures Script mRotate.js is a plugin for mootools.js framework. It is an… [...]