Contains Fx.Styles
Valerio Proietti, http://mad4milk.net
MIT-style license.
| Fx. Styles.js | Contains Fx.Styles |
| Fx. Styles | Allows you to animate multiple css properties at once; Extends Fx.Base, inherits all its properties. |
| Properties | |
| start | The function you’ll actually use to execute a transition. |
| Element | Custom class to allow all of its methods to be used with any DOM element via the dollar function $. |
| Properties | |
| effects | Applies an Fx.Styles to the Element; This a shortcut for Fx.Styles. |
Allows you to animate multiple css properties at once; Extends Fx.Base, inherits all its properties. Includes colors. Colors must be in hex format.
| el | the $(element) to apply the styles transition to |
| options | the fx options (see: Fx.Base) |
var myEffects = new Fx.Styles('myElement', {duration: 1000, transition: Fx.Transitions.linear});
//height from 10 to 100 and width from 900 to 300
myEffects.start({
'height': [10, 100],
'width': [900, 300]
});
//or height from current height to 100 and width from current width to 300
myEffects.start({
'height': 100,
'width': 300
});| Properties | |
| start | The function you’ll actually use to execute a transition. |
Custom class to allow all of its methods to be used with any DOM element via the dollar function $.
| Properties | |
| effects | Applies an Fx.Styles to the Element; This a shortcut for Fx.Styles. |
returns the element passed in with all the Element prototypes applied.
function $( el )