Ukiyo-e Woodblock
Crane Glide
7 cranes with flapping wings glide across flat indigo/teal bands past a coral sun and Mt. Fuji silhouette, with scrolling wave crests.
canvasmedium 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
Japanese-themed hero backgrounds, cultural art exhibits, ambient screensavers, or any dark-mode layout wanting serene generative motion.
When not to
Light-background UIs (background hardcoded dark navy). Contexts where legible text overlays are needed over the animated area.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change crane count to 10 by setting N=10, shift the sun color to gold by replacing CORAL with '#e0c040' in the sun arc fillStyle, and slow wing flap by changing t*7 to t*4 in the frame loop. 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 (N=7)
- flight speed range (sp[i] = 0.018 + random*0.03)
- band colors (INDIGO1, INDIGO2, TEAL, CREAM)
- sun position and size (W*0.26, H*0.18, min*0.11)
- wing flap rate (t*7)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- DPR-aware canvas sizing and ctx.setTransform
- visibilitychange pause/start guard
- prefers-reduced-motion static fallback branch
- IIFE wrapper
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded in CSS (#0f1822) — must edit to change dark background
- Crane x-position wraps via modulo but t0 resets on resume, causing slight position jump after tab hide/show
More Ukiyo-e Woodblock components
- Wave CrestA 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.
- 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.
- 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.