Contains Fx.Style
Valerio Proietti, http://mad4milk.net
MIT-style license.
| Fx. Style.js | Contains Fx.Style |
| Fx. Style | The Style effect; Extends Fx.Base, inherits all its properties. |
| Properties | |
| hide | Same as Fx.Base.set (0) |
| start | displays the transition to the value/values passed in |
| Element | Custom class to allow all of its methods to be used with any DOM element via the dollar function $. |
| Properties | |
| effect | Applies an Fx.Style to the Element; This a shortcut for Fx.Style. |
The Style effect; Extends Fx.Base, inherits all its properties. Used to transition any css property from one value to another. Includes colors. Colors must be in hex format.
| el | the $(element) to apply the style transition to |
| property | the property to transition |
| options | the Fx.Base options (see: Fx.Base) |
var marginChange = new Fx.Style('myElement', 'margin-top', {duration:500});
marginChange.start(10, 100);| Properties | |
| hide | Same as Fx.Base.set (0) |
| start | displays the transition to the value/values passed in |
Same as Fx.Base.set (0)
displays the transition to the value/values passed in
var var marginChange = new Fx.Style('myElement', 'margin-top', {duration:500});
marginChange.start(10); //tries to read current margin top value and goes from current to 10Custom class to allow all of its methods to be used with any DOM element via the dollar function $.
| Properties | |
| effect | Applies an Fx.Style to the Element; This a shortcut for Fx.Style. |
returns the element passed in with all the Element prototypes applied.
function $( el )