forever components

Op Art & Moire

Spiral Vertigo

Two counter-rotating Archimedean spirals at near-equal pitch create shifting moire fringes and illusory depth pull on a dark background.

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

Dark hero backgrounds, op-art or psychedelic themes, loading screens where strong visual motion sets a mood.

When not to

Contexts requiring readable text overlays or calm ambience. Avoid for users prone to motion sensitivity.

Working with an AI agent

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

Change rotation speed from 0.18 to 0.08 for a slower drift, set moire overlay alpha from 0.22 to 0.45 for stronger fringe contrast, and reduce TURNS from 7 to 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

  • rotation speed (t*0.18 in drawSpiral calls)
  • moire pitch offset (breathe*1.045)
  • moire overlay alpha (0.22)
  • line weight of primary arms (2.4)
  • TURNS count (7)
  • pitch breathing amplitude (0.05)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • pre-allocated Float32Array trig tables (COS/SIN/RAD)
  • visibilitychange pause/resume guards
  • reduced-motion static fallback (drawOneFrame)
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default
  • Strong vertigo may trigger discomfort; reduced-motion guard shows static frame only
  • No pointer interactivity — entirely passive

spiralop-artmoirecanvasvertigocounter-rotategenerative

More Op Art & Moire components

  • Moire DriftTwo concentric ring grids drift apart with opposed phase, producing slow-shifting moire interference fringes via canvas lighter/difference compositing.
  • Bulge GridA 22x22 white line grid on black warps radially outward as an invisible lens drifts on a slow lissajous path; a faint offset twin grid creates moire shimmer.
  • Concentric Pulse26 white rings march outward from center in a ~6s loop; a second scaled field produces slow moire interference fringes on a dark background.
  • Wave ColumnsVertical B&W stripe columns undulate via detuned sine waves, creating a woven fabric ripple with a central bulge illusion and moire interference.
  • Checker WarpA black-and-white checkerboard bends around a breathing lens at the center, slowly rotating and drifting for a hypnotic op-art illusion.
  • Line Illusion64 horizontal lines kink at a center crease with differential shading, creating a breathing 3D fold illusion of two angled sheets.