Search code examples
javascriptjqueryjquery-effects

How to make a jQuery effects works for infinite?


how can I make the effect in jQuery works for infinite and won't stop, Since when I run it right now, it works only for a couple of seconds(3 sec) & stop after that.

ex:

$('div').effect('Slide');

Solution

  • setInterval(function(){$('div').effect('slide')}, 1000);