the compact javascript framework
in partnership with mediatemple
Contains Fx.Base, the foundamentals of the MooTools Effects.
MIT-style license.
Fx. Base.js | Contains Fx.Base, the foundamentals of the MooTools Effects. |
Fx.Base | Base class for the Effects. |
Properties | |
set | Immediately sets the value with no transition. |
start | Executes an effect from one position to the other. |
stop | Stops the transition. |
Base class for the Effects.
transition | the equation to use for the effect see Fx.Transitions; default is <Fx.Transitions.Sine.easeInOut> |
duration | the duration of the effect in ms; 500 is the default. |
unit | the unit is ‘px’ by default (other values include things like ‘em’ for fonts or ‘%’). |
wait | boolean: to wait or not to wait for a current transition to end before running another of the same instance. defaults to true. |
fps | the frames per second for the transition; default is 50 |
onStart | the function to execute as the effect begins; nothing (Class.empty) by default. |
onComplete | the function to execute after the effect has processed; nothing (Class.empty) by default. |
onCancel | the function to execute when you manually stop the effect. |
Properties | |
set | Immediately sets the value with no transition. |
start | Executes an effect from one position to the other. |
stop | Stops the transition. |
Immediately sets the value with no transition.
to | the point to jump to |
var myFx = new Fx.Style('myElement', 'opacity').set(0); //will make it immediately transparent
Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi