Fx. Elements.js

Contains Fx.Elements

License

MIT-style license.

Summary
Fx. Elements.jsContains Fx.Elements
Fx. ElementsFx.Elements allows you to apply any number of styles transitions to a selection of elements.
Properties
startApplies the passed in style transitions to each object named (see example).

Fx. Elements

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.

Arguments

elementsa collection of elements the effects will be applied to.
optionssame as Fx.Base options.
Summary
Properties
startApplies the passed in style transitions to each object named (see example).

Properties

start

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.

Example

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]
    }
});
Fx.Elements allows you to apply any number of styles transitions to a selection of elements.
Base class for the Effects.

Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi