forever components

Ukiyo-e Weather & Road

Bokashi Sky

Canvas sky cycles dawn→day→dusk→night with bokashi gradients; sun/moon arcs overhead, stars appear at night, a bird drifts across, hills anchor the base.

canvasmedium complexitysubtle 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

Ambient backgrounds for art or nature-themed pages. Hero sections needing a slow, meditative day-cycle scene.

When not to

Contexts needing legible text overlays — shifting sky colors reduce contrast unpredictably. Low-end devices that can't sustain a rAF loop.

Working with an AI agent

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

Slow the full day cycle to 36 seconds by changing PERIOD from 18 to 36, and add a second bird with offset phase (bu=(t*0.04+0.5)%1). 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

  • day cycle duration (PERIOD=18)
  • sky phase colors (PHASES array top/bot/sun)
  • sun/moon radius (rad=18/14)
  • bird speed (t*0.06)
  • hill curve control points
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard (REDUCED)
  • visibilitychange stop/start
  • DPR-aware fitCanvas
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Stars use fixed pseudo-random positions — no true scatter on resize
  • Background CSS color (#2a3550) must be updated manually if sky palette changes

woodblockskygradientday-cycleambientcanvas

More Ukiyo-e Weather & Road components

  • Sudden RainUp to 140 slanted rain streaks fall in two depth layers over a painted ukiyo-e scene: gradient sky, green hill, indigo river, and arched bridge silhouette.
  • Falling SnowSnow flakes drift and sway over a ukiyo-e night scene: indigo sky, snow-capped rooftops, and a lone layered pine. Static fallback for reduced-motion.
  • Distant MountainFour ukiyo-e hill silhouettes drift at different parallax rates past a snow-capped peak and glowing sun on a gradient indigo sky.
  • Plum BranchA ukiyo-e-style ume plum branch with 11 blossoms that bloom open petal-by-petal, sway gently, and re-bloom every 12 seconds against layered ink hills.
  • Boat on the SwellA small ferry rocks on sine-wave swells at dusk beneath a sienna sun and three circling gulls, rendered in ukiyo-e woodblock palette.
  • Lantern Path7 paper lanterns line a receding road in ukiyo-e woodblock style; sky and lanterns cycle through dusk and dawn as darkness falls and lifts.