forever components

Ukiyo-e Woodblock

Wave Crest

A stylized ukiyo-e-inspired cresting wave with curling foam claws, an indigo sea gradient, Fuji-like cone, and coral sun — all drawn procedurally on canvas.

canvasmedium 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 backgrounds or ambient loops needing a cultural/artistic aesthetic. Japanese theme sections, travel, nature, or fine-art brand contexts.

When not to

Contexts requiring legible text overlays — the wave animation occupies the full viewport. Bright/light-background layouts (background is hardcoded dark navy).

Working with an AI agent

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

Change the foam color from #f3ead4 to pure white (#ffffff), increase the number of foam fingers from 11 to 16 by changing N=11 to N=16, and slow the wave swell by changing tt*0.9 to tt*0.5. 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

  • foam finger count (N=11)
  • palette constants (INDIGO, SEA, FOAM, CORAL, SUN)
  • wave swell amplitude (H*0.05)
  • crest lift peak position (nx-0.42)
  • sun position (W*0.76, H*0.27)
  • animation speed (t+=0.016)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion static-frame fallback
  • visibilitychange pause/resume
  • DPR-aware canvas sizing
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Background color hardcoded in CSS (#0f1822) — must edit both CSS and canvas drawSky() to change theme
  • No interactivity — purely passive, no pointer or click response
  • Foam finger intensity drops off sharply away from crest peak (nx~0.42); repositioning the wave requires updating multiple magic numbers

ukiyo-ewavejapanesewoodblockcanvasambientocean

More Ukiyo-e Woodblock components

  • Rain Lines96 diagonal rain streaks fall over layered indigo/coral hill bands and a village silhouette beneath a bokashi cream sky with a pale moon disc.
  • Crane Glide7 cranes with flapping wings glide across flat indigo/teal bands past a coral sun and Mt. Fuji silhouette, with scrolling wave crests.
  • Blossom Fall110 sakura petals drift and flutter down over an indigo-to-coral bokashi sky with a stylised woodblock mountain and bare branch silhouette.
  • Mountain ConeSnow-capped Fuji cone under a bokashi sky cycling night-dawn-day-dusk every 24s; sun/moon disc arcs overhead while 7 cranes drift across.
  • Koi RippleA kohaku koi undulates across a dark pond as four concentric ripple rings expand and coral petals drift, all rendered in woodblock palette.
  • Bamboo SwayNine indigo bamboo stalks sway with sine-wave lean and leaf flicker against a cream bokashi sky and low coral moon, rendered in flat woodblock style.