Example #7: clock display with one short blink per second

The whole method chain .text(Date).addClass('blink').wait(100).removeClass('blink') is repeated once per second.

$('.example').repeat(1000,true).text(Date)
  .addClass('blink').wait(100).removeClass('blink');

In this code the object Date is used as a callback function to get a simple example for changing text.

Other examples with intervals

Other examples with open loops

Other examples with repeat-loops

Other examples with timeouts