blink-tag++

Every option, demonstrated live. View source for the exact call behind each section.

1. Fixed interval: new BlinkTagPlusPlus(2)

blinks every 2 seconds, on the dot

2. Random interval, n <= 0: new BlinkTagPlusPlus(-10)

Waits a random 1-10 seconds between flashes, re-rolled every cycle. The flash itself stays short and fixed.

never blinks on a predictable beat

3. Per-element override: data-blink-seconds

Instance default is 1s fixed; the second line overrides it per-element.

uses the instance default (1s) overridden: random, 1-6s

4. Custom selector: { selector: '.retro' }

Not a <blink> tag at all. Any selector works.

a span, blinking because we told it to

5. autoStart: false, manual start() / stop()

waiting for start()

6. Elements added after construction are picked up automatically

The constructor doesn't need to see an element to blink it. A live MutationObserver watches for new matches.

7. Custom flash duration: { flashDuration: 500 }

A slow, deliberate flash instead of the 150ms default. n still only controls the gap between flashes.

long, obvious flash