How to repeat actions in an open interval loop with immediate first run?
Compact syntax with timing methods:
1
$('.some').repeat(interval,true).doThis().overAndOver();
Compare this to the old way with more syntactic fluff:
1
2
3
4
5
function myFunction(){
$('.some').doThis().overAndOver();
}
myFunction();
setInterval(myFunction, interval);
Similar patterns with intervals
Similar patterns with open loops
Similar patterns with sequential loops
- How to repeat actions on interval with an open loop?
- How to repeat actions on interval with a closed loop?
- How to repeat actions in a closed interval loop with immediate first run?
- How to repeat a single callback on interval?
- How to repeat actions a given number of times?
- How to repeat on interval a given number of times?
- How to wait for some event on each element in the right sequence?