====== Fx.Slide ====== Here is the [[http://docs.mootools.net/Plugins/Fx/Fx.Slide|documentation for Fx.Slide.js]]. The slide slides an element in horizontally or vertically, the contents will fold inside. Extends //[[00-fx|Fx]]//, inherits all its properties. Think of this like an old school cash register. When you punch the keys, the value slides into view. Currently the only two directions are sliding in from the top (like a window shade) and in from the left. Options:
var mySlider = new Fx.Slide('sliderButton', {duration: 500});
Then we can play with it:
mySlider.toggle() //toggle the slider up and down.
mySlider.slideIn()
mySlider.slideOut()
mySlider.hide() //hides the element without a transition
mySlider.show() //shows the element without a transition
===== A Better Example =====
Here's how you might actually use it in the real world:
$('slider2').addEvent('click', function(){
$('slider2Content').slide('toggle');
});