∞ forever components

Aurora Text

Filings

Aurora-text register, colour travelling through the letterforms. Move or drag the magnet over the word (or use the arrow keys): letters lean towards it and their filings line up. Tap for a pulse.

canvasmedium complexitymoderate motionpointer

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
1

When to use it

A short word is the whole component, and a pointer, tap or arrow key should push a colour or a force through the letters.

When not to

Body copy, a string longer than a short word, or a layout that needs the word clear of the wall category chip and vote pill. wallInset is off; confirm the word at a 352px card before turning it on.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Aurora-text register, iron filings and a magnet. Dark palette is the default on :root; the light palette is :root[data-theme="light"]. A PAL{light,dark} table backs every colour token; a MutationObserver on data-theme re-reads and redraws, so ?theme=, the forever:theme message and the wall attribute switch it live. The ghost word is a decorative underlay (about 1.3:1 by design).

Safe to edit

  • WORD (or word) constant
  • palette constants
  • spring, mass and force constants

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard
  • visibilitychange pause
  • pointer-events path and touch-action on the gesture element
  • namespaced prefix
  • theme hook (?theme= bootstrap and forever:theme listener)

typographyinteractivepointereditorial

More Aurora Text components

  • RisoAurora-text register, colour travelling through the letterforms. Drag fast across the word, then stop (or use the arrow keys): the two ink plates of each…
  • LouvresAurora-text register, colour travelling through the letterforms. Flick across a letter to spin its louvres, or tap for a half turn; they coast and drop…
  • ChordAurora-text register, colour travelling through the letterforms. Move across the word (or use the arrow keys): each letter hops as it fills. Grab a…
  • EclipseAurora-text register, colour travelling through the letterforms. Move or drag the moon over the word (or use the arrow keys): its gravity pulls the…
  • WindAurora-text register, colour travelling through the letterforms. Swipe across the word (or press the arrow keys): the gust bends the letters like grass…
  • ContourAurora-text register, colour travelling through the letterforms. Move or drag over the word (or use the arrow keys): a summit rises and lifts the letters…