forever components

Kinetic Typography

Rack Focus

Two stacked words trade sharpness in a cinematic rack-focus breath: the defocused word blooms into a soft cyan halo while the focused one snaps razor-sharp.

cssmedium 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 →
Worth keeping? Votes steer what gets built next — sign in to cast one, free to read

When to use it

Hero sections, loading screens, or film/photography brand contexts needing cinematic ambient motion with minimal distraction.

When not to

Contexts where users need to read both words simultaneously, or on low-end devices sensitive to repeated CSS filter repaints.

Working with an AI agent

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

Change the two words to 'FOCUS' and 'SHIFT', slow the breath cycle to 8000ms by setting PERIOD=8000, and change the bloom halo color from #56cfe1 to #ff6b6b. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.

Safe to edit

  • word content (data-w attribute and text node)
  • cycle period (PERIOD=5200)
  • max blur radius (14px in paint())
  • bloom halo color (#56cfe1 in CSS)
  • pointer nudge strength (±60ms t0 shift)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • quantized blur step logic (0.5px rounding for perf)
  • prefers-reduced-motion static fallback
  • visibilitychange pause/start
  • IIFE wrapper
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • CSS filter:blur() triggers repaint every frame — quantized to 0.5px steps to reduce cost but still heavier than transform-only animations
  • Pointer nudge shifts phase timing, which can cause a subtle jump on fast cursor sweeps
  • Background color hardcoded to #101418 in CSS — must edit to change dark scheme

typographyblurfocuscinematicambientloopglow

More Kinetic Typography components

  • Weight Morph WaveEach letter of a word pulses font-weight and vertical scale in a staggered sine wave, shifting hue from cyan to blue.
  • Scramble DecodeNeon-green monospace words scramble through random glyphs then lock left-to-right like a terminal decrypting. Auto-cycles; click skips to next word.
  • Split-Flap BoardSix amber tiles cycle through letters to spell airport-style words (DEPART, ARRIVE, ONTIME, BOARDS) on a dark charcoal background with a rotateX flip…
  • Gradient ShimmerBold "SHIMMER" text with a rainbow gradient clipped to the letterforms, continuously panning for a glossy iridescent sweep on deep umber.
  • Glitch RGB SplitRed and cyan pseudo-element copies of GLITCH drift and randomly snap with clipped displacement, simulating a CRT RGB-split glitch on near-black.
  • Marquee TickerTwo rows of bold words scroll in opposite directions — yellow left, teal right — with red bullet separators on a dark green background, news-ticker style.