Use periodical instead of delay
-----Original Message-----
From: mmjaeger [mailto:[email protected]]
Sent: Friday, 16 October 2009 1:58 PM
To: MooTools Users
Subject: [Moo] Fx.Scroll in a loop
Hello
Please allow me a quick question - I got the following code:
<code>
var fxScroll = new Fx.Scroll($('randomImageContainer'), {
duration: 10000,
wait: false
}).toRight().chain(function(){
this.toLeft.delay(2500, this);
});
</code>
this scrolls to the right and then back to the left - what I don't see
is how I could basically use it to run endless (in a loop)
thank you in advance for your help.