Skip to content

Accessibility

What toon does for accessibility, what it leaves to you, how it's checked and the known gaps: the conformance statement for toon 1.2.1.

Edit this page

This is the conformance statement for toon 1.2.1, last reviewed November 28, 2026.

This docs site targets WCAG 2.2 level AA and partially conforms. Every check below passes on each release, but no manual audit with screen readers has been recorded yet, so this is not a claim of full conformance.

The library makes no conformance claim of its own. toon.css and toon.js animate what you give them, so whether your page conforms depends on how you use them. toon handles some of it for you and leaves the rest to you.

Accessibility: what toon does and what you do

Section titled “Accessibility: what toon does and what you do”
WCAG 2.2 toon does You do
2.3.3 Animation from interactions (AAA) toon.css stops every preset when the viewer asks for reduced motion. .toon-launch and .toon-arc jump to their end position On canvas, check the reduced-motion setting and freeze the clock: see the reduced-motion recipe. toon.js doesn’t check the setting itself
2.2.2 Pause, stop, hide .toon-paused, handle.pause() and ticker.timeScale set to 0. A paused ticker holds canvas physics still Add a Pause button to anything that moves for more than 5 seconds: the looping presets (toon-bounce, toon-sway, toon-bob, toon-blink, toon-breathe, sprites and .toon-loop) and canvas loops
2.3.1 Three flashes or below threshold No preset changes brightness quickly Keep sprite sheets and canvas drawings under 3 flashes per second
1.1.1 Non-text content Nothing: a canvas has no text of its own Give each canvas role="img" and an aria-label that says what moves. Add a button for any action that only works on the canvas
4.1.3 Status messages Nothing: an animation doesn’t announce itself When an animation shows a change, such as a toast or a finished loader, announce it in an aria-live region

npm run verify runs these checks on every change, and CI runs them on every pull request and every push to main:

  • axe with the WCAG 2.0, 2.1 and 2.2 A and AA rules, on every docs page in light and dark, including the open search dialog.
  • Color contrast of every demo color pair in every style and mode: text at 4.5:1 or more, graphics at 3:1 or more.
  • Reduced motion: every snippet on these pages is pasted into a bare page with reduced motion on, and it must not move.
  • Pause: every example page that loops forever must have a Pause control, and using it must stop all of the page’s motion.
  • Phone widths of 390px and 320px, with no sideways scrolling.
  • No manual test with VoiceOver or NVDA has been recorded, and keyboard focus hasn’t been tested while elements move.
  • Contrast is checked after animations finish, not partway through a fade or the dimming in .toon-stage.
  • A looping snippet copied from these pages has no Pause button of its own. The demo toolbar on each page adds one around it.

Open an issue on GitHub with the page, your browser and any assistive technology you use.