Fx.Slide currently only slides down from the top or in from the left. You would have to extend it or write your own class to make it go up or from the right...
On Fri, May 22, 2009 at 8:00 AM, jermaine (via Nabble) < [email protected]<ml-user%[email protected]> > wrote: > > Hi All, > > I've got the following code: > > [code] > window.addEvent('domready', function() { > //-vertical > var myVerticalSlide = new Fx.Slide('vertical_slide', > {duration: 570, transition: 'bounce:out'}).hide(); > > $('v_toggle').addEvent('click', function(e){ > e.stop(); > myVerticalSlide.toggle(); > }); > }); > [/code] > > Now the thing is, by default, when I click on my button, the element > (div) will toggle down and when I click it again, it will go toggle up > again. > > But what If I want the element to toggle Up, and then down, how can I > achieve this? > Now someone has achieved this: > http://www.virtual-gadjo.com/test/slideup.html > however I want to achieve the same thing but by Toggling. > > Any suggestions? > > > ------------------------------ > View message @ > http://n2.nabble.com/-Moo--Howto-Toggle-UP-and-Down%2C-instead-of-Down-and-UP----FX.Slide--tp2957940p2957940.html > To start a new topic under MooTools Users, email > [email protected]<ml-node%[email protected]> > To unsubscribe from MooTools Users, click here< (link removed) >. > > > ----- The MooTools Tutorial: http://www.mootorial.com www.mootorial.com Clientcide: http://www.clientcide.com www.clientcide.com -- View this message in context: http://n2.nabble.com/-Moo--Howto-Toggle-UP-and-Down%2C-instead-of-Down-and-UP----FX.Slide--tp2957940p2958177.html Sent from the MooTools Users mailing list archive at Nabble.com.
