====== Fx.Transitions ====== Fx.Transitions.js contains numerous transitions that are easier to demonstrate than they are to describe. Here is the [[http://docs.mootools.net/Fx/Fx.Transitions|documentation for Fx.Transitions.js]]. Drag the redbox and see the transition when you release it:
//Elastic.easeOut with user-defined value for elasticity.
var myTransition = new Fx.Transition(Fx.Transitions.Elastic, 3);
new Fx.Tween(element, {transition: myTransition.easeOut});
===== Fx.Transitions Shorthands =====
You can also refer to these transitions with a shorthand that's a little easier to remember and type:
//Fx.Transitions.Bounce.easeIn
new Fx.Tween(element, {transition: 'bounce:in'});
//Fx.Transitions.Sine.easeOut
new Fx.Tween(element, {transition: 'sine:out'});
//Fx.Transitions.Elastic.easeInOut
new Fx.Tween(element, {transition: 'elastic:in:out'});