Ukiyo-e Wave & Mountain
Thirty-Six Views of Fuji
Three ukiyo-e SVG scenes — morning Fuji, stormy lightning, great wave — auto cross-fade every 5s with per-scene live animation.
svgmedium complexitymoderate motion
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
Art-themed hero backgrounds, Japanese aesthetic UIs, ambient gallery displays cycling historical scenes.
When not to
Contexts requiring text legibility over the background; low-end devices running many concurrent SVG animations.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change scene dwell time from 5 to 8 seconds by editing `switchAt = t + 5` to `switchAt = t + 8`, and add a fourth scene builder into the `builders` array. 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
- scene dwell duration (switchAt = t + 5)
- cross-fade speed (0.6s transition)
- lightning flash threshold (f2 > 0.92)
- wave crest height (crest * 230)
- color palette per scene builder
- rain line count (i < 50)
- view cadence (every 3.4 s)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard and static fallback
- visibilitychange pause/resume
- getBBox flush before opacity rAF
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Lightning flicker is sine-wave driven — not truly random; can feel repetitive on long loops
- Rain positions fixed at load time — reposition requires scene rebuild
- SVG inline style transitions require modern browser (all fine in practice)
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.
- Cranes Crossing the MoonThree brush-contour cranes beat their wings along an S-curve past a pale moon on parchment. Staggered formation, wings driven by sine wave.
- 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.