Example #1: repeated blinking (like in the old days with the deprecated <blink> element)

By using .toggleClass() the CSS class switches from being added and removed after every interval timeout.

In this example the interval timeout is set to 400 milliseconds.

$('.blink').repeat(400).toggleClass('blink');

This is a blinking text.

See also another example for the same task using iterated timeouts instead.

Other examples with open loops

Other examples with repeat-loops