forever components

Suprematist Geometric Forms

Suprematist Drift

9 colored bars in black, red, blue, yellow rotate at random angles and drift slowly across a cream field via alternating CSS keyframes.

csslight 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

Art/design-themed hero backgrounds, gallery splash screens, ambient displays referencing early modernist aesthetics.

When not to

Contexts requiring legible text overlays — bars drift into readable areas. Dark-background layouts where the cream field clashes.

Working with an AI agent

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

Change the palette to earthy tones by updating PAL to {black:'#2b1d0e', red:'#8b3a1a', blue:'#2c4a6e', yellow:'#c9913d'} and increase bar count N from 9 to 14. 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

  • bar count (N=9)
  • palette colors (PAL object)
  • bar size range (long: 14+40%, thin: 4+16%)
  • rotation range (-30..+30deg)
  • drift duration range (16..32s)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard with static fallback
  • visibilitychange pause/resume
  • aria-label on field div
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Bar positions randomize on each page load — composition cannot be pinned
  • Bars can overlap in ways that obscure each other; no z-index ordering logic

suprematismgeometricabstract-artbarsdriftcss-animationgenerative

More Suprematist Geometric Forms components

  • The Black Square, BreathingA near-black square barely scales and rotates on a warm white ground; a faint red ghost square offsets behind it. Suprematist stillness in motion.
  • Dynamic CompositionSuprematist shapes fly in from edges, hold in a white void, then depart — bars, circles, crosses in black, red, blue, yellow; never repeating.
  • The Aviator's FieldSuprematist bars in black, red, blue, and yellow launch diagonally across an off-white field at steady tempo; reduced-motion shows a static arrangement.
  • Cross & CircleSuprematist shapes — cross, circle, bar, square — fling in from the nearest edge with cubic ease and a settling wobble, auto-composing on a warm white field.
  • Weightless7 Suprematist shapes — squares, circles, bars, crosses in red/blue/yellow/white — orbit and self-spin around an invisible centre on a dark field.
  • Red WedgeA bold red CSS triangle slowly sweeps across a cream field past faint black and grey rectangles, evoking Suprematist's Suprematist diagonal.