Skip to content

Motion and motifs

Use motion to clarify an interaction or change of state. Duration tokens run from --nw-duration-instant (80ms) to --nw-duration-slower (560ms). Pair them with --nw-ease-standard, --nw-ease-out, --nw-ease-in, --nw-ease-in-out, or --nw-ease-back. The base stylesheet reduces decorative animation under prefers-reduced-motion.

Cut corners
Wire edge
Neon glow

nw-cut chamfers two corners using --nw-cut; nw-wire paints a one-pixel gradient edge. nw-glow-sm, nw-glow-md, and nw-glow-lg use --nw-glow-color and soften in Lumen. On cut elements the glow uses a drop shadow.

Scanlines
Circuit grid

Glitch on hover or focus

nw-scanlines adds a pointer-transparent overlay. nw-grid-bg uses --nw-grid-size for its grid. nw-glitch runs a short effect on hover or focus and is disabled for reduced motion. Keep the grid on a separate element from cut or wire, since they all paint the background.