forever components

Kinetic Typography

Wavy Sine

Letters of "WAVES~" bob vertically and rotate along a staggered sine wave with per-letter hue cycling between cyan and teal on a deep navy background.

csslight complexitymoderate motion

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 or ambient display for ocean, wave, or fluid-themed brands. Looping title cards or screensaver-style backgrounds.

When not to

Long strings — effect only works well for 6–8 characters. Light backgrounds require CSS edits throughout.

Working with an AI agent

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

Change the word to "FLUID~", increase vertical amplitude from 26 to 40, and shift the hue base from 160 to 200 for a bluer palette. 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 (text variable)
  • vertical amplitude (y = sin*26)
  • rotation range (cos*10 deg)
  • hue base and range (160 + sin*40)
  • animation speed (t += 0.06)
  • phase offset per letter (i*0.55)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard
  • visibilitychange pause/resume
  • lastHue cache (prevents thrashing color style)
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Background color hardcoded in CSS — light-theme use requires editing both body background and span color
  • No aria role on the animated container — purely decorative
  • clamp font-size may clip very long words on narrow viewports

typographysine-waveloophue-shifttext-animationaquamarinekinetic

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.