forever components

Bauhaus Geometric

Mechanical Ballet

Five ratio-linked gear-hubs with rotating disc/square/triangle arms spin autonomously; black levers connect centers like a Bauhaus machine diagram.

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

Design-themed hero backgrounds, Bauhaus or modernist editorial layouts, motion studies for creative portfolios.

When not to

Light-background UIs (background hardcoded dark). Contexts requiring legible text overlaid on the canvas.

Working with an AI agent

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

Change the main hub color from red to orange by setting RED="#e67e22", and slow the primary hub from sp:1.0 to sp:0.5 in rig[0]. 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

  • palette constants (RED, BLUE, YEL, OFF)
  • hub speeds (rig[n].sp)
  • arm counts (rig[n].arms)
  • arm shape types (rig[n].arm: 0=disc 1=square 2=triangle)
  • hub radii (rig[n].r)
  • lever width (lw = S*0.022)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard (static frame fallback)
  • visibilitychange stop/start
  • DPR-aware canvas sizing
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Hub positions use normalized coords (x/y fractions) relative to canvas size — repositioning requires editing the rig array
  • No interactive controls; all motion is autonomous

bauhausgeometriccanvasmechanicalgearsprimary-colorsloop

More Bauhaus Geometric components

  • Grid Construction16 primary-colored geometric shapes scatter then snap into a 4x4 modular grid, hold, dissolve, and recompose in a new Bauhaus arrangement.
  • Orbiting ArcsConcentric red, blue, and yellow arcs counter-rotate around a breathing core; scattered dots and a tilted segmented bar orbit in abstract Bauhaus style.
  • Form TrioRed circle, blue square, and yellow triangle orbit a slow-rotating armature while each shape independently spins, pulses, or tilts on a dark field.
  • Mobile BalanceA Calder-style kinetic mobile of Bauhaus primary-colored circles, squares, and triangles hang from swaying black balance arms in slow counterpoint.
  • Dot Rhythm8x8 grid of red, blue, yellow, and white dots pulsing in diagonal travelling waves; two interfering sines modulate scale and opacity for a rhythmic beat.
  • Diagonal CounterpointRed and blue diagonal bars sweep in opposing directions and cross at center; a pulsing yellow square node and slow-spinning dashed ring anchor the…