forever components

Ukiyo-e Wave & Mountain

Cranes Crossing the Moon

Three brush-contour cranes beat their wings along an S-curve past a pale moon on parchment. Staggered formation, wings driven by sine wave.

svgmedium 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

Decorative hero or ambient background for art, culture, or nature themes. Calm looping accent for Japanese or ukiyo-e-inspired layouts.

When not to

Layouts requiring static imagery or reduced-motion compliance beyond a single frozen frame — no graceful animated fallback.

Working with an AI agent

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

Change crane count to 5 by adding two more makeCrane() entries and update the cranes array, and slow wing beat by changing t*120 to t*70. 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

  • crane count (cranes array length)
  • flight path S-curve (pathD string)
  • wing beat speed (t*120)
  • crane scale steps (sc = 0.9 - i*0.12)
  • moon position and size (cx, cy, r)
  • trail dash pattern (stroke-dasharray)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • guide path + getTotalLength/getPointAtLength pattern
  • IIFE wrapper
  • prefers-reduced-motion guard
  • visibilitychange pause/resume
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Reduced-motion shows one static frozen frame — may look unfinished
  • getTotalLength can be slow on older mobile browsers

cranessvgpath-followloopjapaneseambient

More Ukiyo-e Wave & Mountain components

  • The Great Wave off KanagawaProcedural Great Wave: layered Prussian-blue swells crest and sway with recursive white foam fingers; a snow-capped Fuji silhouette sits in the background.
  • Fuji at DawnFlat woodblock-style Red Fuji scene: indigo cone with snow cap, sky cycling from night to beni-pink dawn, a sun rising, and three cloud bands drifting across.
  • Seigaiha — Blue Sea WavesNavy-to-sky arcs tile the canvas in the seigaiha pattern; nested rings breathe with a slow staggered rise like a tide held in cloth.
  • Sudden Shower on the Great BridgeDiagonal sumi-ink rain streaks fall over a flat arched bridge silhouette; wind angle shifts slowly via sine wave, evoking ukiyo-e's woodblock print.
  • The One Living LineSumi brush traces a Lissajous path on washi canvas; stroke swells when slow and thins at speed, with ink fade and dry-brush scatter.
  • Wind among the LeavesOchre leaves and pale paper scraps drift across a sky-to-washi gradient, steered by a sine-based wind field with gentle undulating stream lines.