forever components

Bauhaus Geometric

Grid Construction

16 primary-colored geometric shapes scatter then snap into a 4x4 modular grid, hold, dissolve, and recompose in a new Bauhaus arrangement.

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 portfolio heroes, Bauhaus/geometric brand contexts, ambient looping backgrounds where structured motion signals craft.

When not to

Contexts requiring legible text overlays — shapes occupy most of the viewport. Low-end devices running many simultaneous canvas tiles.

Working with an AI agent

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

Change the grid size from N=4 to N=3 (9 modules), swap YEL to '#f97316' for an orange accent, and slow the build phase by increasing dur[0] from 2200 to 3500. 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

  • grid size N (default 4)
  • Bauhaus palette constants RED/BLU/YEL/BLK/CRM
  • phase durations array dur=[2200,1500,2600,1500]
  • composition square scale (grid=Math.min(W,H)*0.78)
  • stagger timing per tile (i*0.045)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

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

Known limitations

  • Shape grammar rotates each cycle (sh[i]+1&3) — tile shapes change every loop, may surprise if a fixed layout is expected
  • Background color hardcoded to #101012 in both CSS and canvas fill — must change in two places

bauhausgridgeometriccanvasloopmodularcomposition

More Bauhaus Geometric components

  • 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…
  • Nested Frames14 concentric Bauhaus-palette rectangles zoom endlessly inward via seamless log-scale rebasing; a yellow square and red circle accent the core.