the compact javascript framework
in partnership with mediatemple
Contains Fx.Elements
MIT-style license.
Fx. Elements.js | Contains Fx.Elements |
Fx. Elements | Fx.Elements allows you to apply any number of styles transitions to a selection of elements. |
Properties | |
start | Applies the passed in style transitions to each object named (see example). |
Fx.Elements allows you to apply any number of styles transitions to a selection of elements. Includes colors (must be in hex format). Inherits methods, properties, options and events from Fx.Base.
elements | a collection of elements the effects will be applied to. |
options | same as Fx.Base options. |
Properties | |
start | Applies the passed in style transitions to each object named (see example). |
Applies the passed in style transitions to each object named (see example). Each item in the collection is refered to as a numerical string (“1” for instance). The first item is “0”, the second “1”, etc.
var myElementsEffects = new Fx.Elements($$('a')); myElementsEffects.start({ '0': { //let's change the first element's opacity and width 'opacity': [0,1], 'width': [100,200] }, '4': { //and the fifth one's opacity 'opacity': [0.2, 0.5] } });
Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi