this.set('morph', {link: 'chain'});
this.morph(first);
this.morph(second);the second morph will occur only after the first completes. On Wed, Feb 11, 2009 at 11:29 AM, Tim- (via Nabble) < [email protected]<ml-user%[email protected]> > wrote: > > Hey! > I'm a Mootools-beginner and I want to delay the morph funktion. I've > tried it with "setTimeout" but nothing happend. > My question: How can I delay the morph in the second part of the > following example? > > window.addEvent('domready', function() { > > > $('handone').addEvent('mouseover', function(e) { > e.stop(); > // zu css class handchanged wechseln > this.morph('.handchanged'); > }); > > $('handone').addEvent('mouseleave', function(e) { > e.stop(); > // zu css div.handnorm zurück wechseln > this.morph('div.handnorm'); > }); > > $('handone').addEvent('click', function(e) { > e.stop(); > // Bei click zu css display:none wechseln. > this.tween('display', 'none'); > > > }); > > }); > > > > ------------------------------ > View message @ http://n2.nabble.com/morph-delay-tp2310759p2310759.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/morph-delay-tp2310759p2310846.html Sent from the MooTools Users mailing list archive at Nabble.com.
