Motion
CSS-only front-page motion: eight hero glow variants, glyph stroke-draw, scroll reveals — no JavaScript, reduced-motion safe.
Everything on this page is pure CSS. No JavaScript runs, no assets load, and the zero-external-request contract holds. Three guarantees come first:
- Reduced motion is respected. With
prefers-reduced-motion: reduce, every theme animation and transition collapses to its final state instantly, and scroll-driven choreography is not applied at all — content is simply visible. - Print freezes motion. The print stylesheet suppresses all animation and transitions, so nothing prints half-faded.
- Motion never shifts layout. All choreography animates
transformandopacityonly, so the theme’s zero layout-shift behavior is unchanged.
# Pixel-dither hero glow
Set variant="pixel" on the hero shortcode to swap the smooth corner
gradient for a retro, Bayer-style quantized glow: a checkerboard pixel grid
masked by a stepped radial falloff, so the dither thins out toward the edge.
Two phase-shifted layers alternate in hard steps — a two-frame dither
shimmer in the tradition of demoscene graphics. The glow reads the active
preset’s accent token, so it re-themes with all seven color presets, and it
keeps the default variant’s physical top-right placement on RTL pages too,
matching the smooth glow it replaces.
Motion
A hero that hums
Browsers without mask-composite support render the default smooth glow
instead — the variant degrades, never breaks. The shimmer stops entirely
under reduced motion, and the glow layer never appears in print.
# Aurora hero glow
Set variant="aurora" for the organic counterpart to the pixel dither: two
soft accent lobes sway slowly around the hero’s top-right corner like a slow
aurora. The whole effect is one pseudo-element animated with a single
rotate() — transform-only, GPU-composited, no repaint, no JavaScript — so
it renders in every browser that renders gradients at all. Like the pixel
glow it reads the active preset’s accent token, keeps the default variant’s
physical top-right placement on RTL pages, and collapses to the static
corner gradient under reduced motion and in print.
Motion
A glow that drifts
# Scanline hero glow
Set variant="scanline" for a CRT-flavored sweep: a soft band of accent
sweeps down the corner glow like a monitor refresh, over a faint static
scanline texture fading out from the corner. The band travels by transform
only and rests fully above the card, so with motion disallowed nothing is
visible and the variant reads as a slightly cooler default glow.
Motion
A hero that refreshes
# Pulse hero glow
variant="pulse" is the quietest option: the default corner gradient
breathes gently in opacity and scale. Its static state is pixel-identical
to the default variant, so it is the right choice when the glow should
live but never demand attention.
Motion
A hero that breathes
# Beam hero glow
variant="beam" puts one soft ray of accent on a full 360° lighthouse
sweep around the corner — the same pivot geometry as the aurora sway with
linear timing, so the beam returns once per cycle. A dimmed static corner
gradient keeps the card warm between passes.
Motion
A hero with a beacon
# Dot-grid ripple hero glow
variant="ripple" lays a calm accent dot grid fading out from the corner
and sends a wave of brighter dots expanding outward from it — a sonar-style
pulse through the field. The wave is one pseudo-element: a dot grid masked
to an annulus around the corner, animated with scale and opacity only. With
motion disallowed the wave rests invisible, leaving the calm dot grid.
Motion
A hero in a dot field
# Dot-grid ripple bounce hero glow
variant="ripplebounce" is the playful sibling of the ripple: the dot
field is cut into concentric rings around the top-right corner, and
adjacent rings breathe in opposite phase — the dots bounce radially, like
a slow wave rolling out of the corner. Two complementary ring layers do
the work with transform only, and with motion disallowed they rest
interleaved into one calm grid.
Motion
A hero that bounces
# Synth oscilloscope hero glow
variant="synth" turns the hero into a quiet instrument: a faint scope
graticule with two dotted sine traces running the card’s width, drifting at
different periods and speeds. Each trace is a row of tiled dot samples of
its waveform moved by exactly one pattern period per cycle, so the waves
propagate seamlessly — transform only, no repaint. With motion disallowed
the traces rest as static dotted waveforms.
Motion
A hero on the scope
# Glyph stroke-draw
In feature-grid layout="media", the themed glyph bands draw themselves in
once as they scroll into view — a one-time stroke animation driven by CSS
scroll-driven animations (animation-timeline: view()). Every shipped glyph
carries pathLength="100", so a single keyframe fits every icon. Browsers
without scroll-driven animation support, and readers who prefer reduced
motion, see the finished glyphs immediately.
Scroll-driven
Draws on arrival
Normalized
One keyframe
Fallback
Static elsewhere
# Entrance and scroll reveals
On the front page (the docs-home layout only — reading pages stay quiet):
- Hero entrance. The hero’s children rise in with a short stagger on load. Time-based, so it plays without scrolling and works everywhere.
- Scroll reveals. Feature tiles and cards below the fold rise in as
they enter the viewport, scrubbed by scroll position rather than time.
Gated on
animation-timeline: view()support; other browsers render everything statically.
# Opt-in 3D tilt
Tiles and cards accept a class parameter. Adding class="docs-motion-tilt"
gives a hover-only, fixed-angle perspective tilt — CSS 3D transforms, no
pointer tracking, no JavaScript. It is suppressed under reduced motion.
CSS 3D
Tilt on hover
Opt-in
Your tiles stay calm
# Build-time text reveals
The reveal-text shortcode splits a headline into word spans at build
time — zero JavaScript, zero bytes beyond the stylesheet — and CSS
scrubs each word in as it scrolls into view. The full sentence lives in
aria-label; the spans are hidden from assistive technology; splitting is
word-level only, so screen-reader prosody survives.
Ship scenes, not spinners.
Every word of this paragraph was split by Hugo during the build, and each one rides the same scroll-driven rise you saw on the front page tiles.
| Param | Default | Description |
|---|---|---|
tag |
p |
Container element: p, h1–h4, span, or div. |
stagger |
4% |
Per-word step of the scroll-scrubbed entry range. A percentage, not a wall-clock time. |
class |
— | Extra classes on the container. |
The inner content is plain text by construction — inline markdown is flattened rather than carried into spans. Without scroll-driven-animation support, or under reduced motion, the words are simply visible: text is never hidden behind an unsupported effect.
# What this is not
This tier adds identity and life without JavaScript, bytes on the wire, or new dependencies — the theme ships zero scene content and zero runtimes. Interactive 3D and heavier motion (the scaffolding-plus-runtime subsystem) is a separate, opt-in design track with its own bundle budget.
# Next step: interactive scenes
Everything above is ambient CSS motion. For interactive 3D — WebGL scenes on the vendored three.js runtime, with live palette re-theming and scroll signals — see Scenes .