Psychedelic
Swirl Vortex
5 petal arms across 11 rings rotate at differential speeds to create a slow inward vortex in pink-violet-cyan hues with a glowing core.
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
Dark-mode hero backgrounds, psychedelic/creative portfolio sections, ambient looping screensavers.
When not to
Light backgrounds (hardcoded dark navy). Content-heavy layouts where motion competes with text legibility.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change ARMS to 7 and shift the hue sweep from pink-cyan to green-gold by setting ringHue[i]=t*120+60 and updating the core gradient stops to rgba(255,220,50,0.9). 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
- arm count (ARMS=5)
- ring count (RINGS=11)
- hue sweep range (t*230)
- rotation speed (TWO/40)
- warp breath speed (TWO/17)
- petal width range (0.16-0.10*t)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- trailing-fade fill pattern (rgba fill instead of clearRect)
- IIFE wrapper
- visibilitychange pause/resume
- reduced-motion staticFrame fallback
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded in CSS and JS — must change in both places
- No pointer interactivity — purely passive
- Trail persistence means color changes take several seconds to fully appear
More Psychedelic components
- Liquid Melt7 lava-lamp blobs drift and merge with cycling pink-to-cyan hues on a dark canvas; "MELT" lettering warps per-glyph with skew and scale transforms above.
- Kaleidoscope9 liquid blobs drift in a source wedge mirrored into 6-fold kaleidoscope symmetry on canvas; the whole disc rotates slowly with a hot-pink/violet/amber…
- Warp TypeBold serif "WARP" sliced into vertical columns that ripple and bulge over swirling gold-amber lava blobs rendered with additive screen blending.
- Blob Lamp9 glowing metaballs slowly rise, sway, merge and split through a violet-magenta-amber color ramp on a dark canvas — lava lamp in canvas pixels.
- Ripple Bloom22 lobed color rings bloom outward from a glowing center in pink-magenta-violet-cyan hues, cycling with a slow organic wobble via additive blending.
- Paisley Drift30 psychedelic paisley teardrops drift and morph across a near-black field in green, sage, and gold using additive blending and a trail-wash smear effect.