Example #2: repeated blinking with iterated timeouts

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

In this example a repeated timeout of 700 milliseconds is used.

$('.blink').repeat().toggleClass('blink').wait(700);

This is a blinking text.

See also another example for the same task using an interval loop instead.

Other examples with instant loops

Other examples with open loops

Other examples with repeat-loops

Other examples with timeouts