cue

data-cue

Entrances

Things arriving as they scroll into view, or on load, hover or click. One attribute on any element, at any level of nesting.

Fade

Fades in.

fade
<div data-cue="fade">…</div>

Fade up

Fades in while rising into place. Also fade-down, fade-left and fade-right.

fade-up
<section data-cue="fade-up">…</section>

Fade left

Fades in while moving to the left into place (fade-right moves the other way).

fade-left
<div data-cue="fade-left">…</div>

Scale in

Grows slightly as it fades in.

scale-in
<div data-cue="scale-in">…</div>

Blur in

Comes into focus as it fades in. Best on small elements.

blur-in
<div data-cue="blur-in">…</div>

Wipe

A mask sweeps open across it.

wipe
<img data-cue="wipe" data-cue-from="left" src="…" alt="…">

Stagger

Plays an effect on each child in turn, for lists and grids.

  • One
  • Two
  • Three
<ul data-cue="stagger" data-cue-child="fade-up" data-cue-gap="80">…</ul>

Rise

Text rises into place from behind a mask, word by word, line by line or letter by letter. Screen readers hear the whole sentence; links and emphasis come back as they were.

Know exactly what’s wrong

<h1 data-cue="rise" data-cue-split="words">…</h1>

A block in a brand colour sweeps across the element, the content appears behind it, and the block slides away.

Built to get things fixed.

<h2 data-cue="reveal-box" data-cue-color="accent">…</h2>

Count

A number counts up to its value, keeping its format (1,204, 72.5%, +4) in tabular figures. Screen readers only hear the final value.

1,204

<span data-cue="count" data-cue-from="0">1,204</span>

Draw

SVG lines draw themselves along their length; anything else (a rule, an underline) grows from the left.

<svg data-cue="draw">…</svg>

Type

Short text types itself out, with a caret. Screen readers get the whole text throughout.

Audit any website.

<span data-cue="type">Audit any website.</span>