Accessibility
Built in, not bolted on.
Every effect has a version for people who'd rather things didn't move, and none of them can hide content.
- Reduced motion is total
- With the system setting, or a visitor's own choice (stored), nothing moves: entrances show their end state, numbers their final value, backgrounds a still frame.
- A pause button for loops
- Anything that moves for more than five seconds stops for
<button data-cue-pause>, in your own words and styles (WCAG 2.2.2). Loops also stop in hidden tabs and while off-screen. - Screen readers hear sentences
- Split text keeps a whole copy for screen readers; counts give only the final value; marquee repeats are hidden from them and from the keyboard.
- Never hidden
- Without JavaScript everything shows. An unknown effect, or one that fails, shows its content anyway.
- Hover means focus too
- Every hover effect responds to keyboard focus; the pointer-following ones are off on touch screens.
- Contrast at every frame
- Backgrounds are tested frame by frame behind real text: the glow's worst case is 5.9:1.
<button data-cue-pause>Pause motion</button>