Transitions the height, opacity, padding, and margin (but not border) from and to their current height from and to zero, then sets display to none or block and resets the height, opacity, etc. back to their original values.
new Fx.Reveal(element[, options]);
new Fx.Reveal($('myElement'), {duration: 500, mode: 'horizontal'});
Transitions the height, opacity, padding, and margin (but not border) from their current height to zero, then sets display to none and resets the height, opacity, etc. back to their original values.
myRevealFx.dissolve();
Sets the display of the element to opacity: 0 and display: block, then transitions the height, opacity, padding, and margin (but not border) from zero to their proper height.
myRevealFx.reveal();
Toggles the element from shown to hidden.
myRevealFx.toggle();
Extends the native Element object with Fx.Reveal methods.
Sets a default Fx.Reveal instance for an Element.
el.set('reveal'[, options]);
el.set('reveal', {duration: 'long', transition: 'bounce:out'}); el.reveal(); //show the element el.dissolve(); //hide it
Gets the default Fx.Reveal instance for the Element.
el.get('reveal'[, options]);
el.set('reveal', {duration: 'long', transition: 'bounce:out'}); el.reveal(); //show the element el.get('reveal'); //The Fx.Reveal instance.
Adds Fx.Reveal shortcuts to the Element class.
Retrieves the "build-in" instance of Fx.Reveal and calls its reveal method.
$('myElement').reveal(options);
1. options - (*object*, optional) The [Fx.Reveal][] options. If these are passed in, a new instance will be generated.
Retrieves the "build-in" instance of Fx.Reveal and calls its dissolve method.
$('myElement').dissolve();
Retrieves the "build-in" instance of Fx.Reveal and calls its dissolve method, then either removes or destroys the element.
$('myElement').nix([options, destroy]); $('myElement').nix([destroy]);
Note that either or both of these may be specified and in any order.
$('myElement').nix(true); //destroy $('myElement').nix(); //erase $('myElement').nix({duration: 1000}); //dissolve over 1 second, then erase $('myElement').nix({duration: 1000}, true); //dissolve over 1 second, then destroy
Retrieves the "build-in" instance of Fx.Reveal and calls its reveal method, then pauses the specified duration, and then calls its dissolve method.
$('myElement').wink([duration]);
$('myElement').wink(); //2 second pause $('myElement').wink(500); //.5 second pause
This documentation is released under a Attribution-NonCommercial-ShareAlike 3.0 License.