Primary Grid Compositions
De Stijl Marquee
Two horizontal tracks of De Stijl manifesto words scroll in opposite directions inside colored primary-palette blocks framed by bold black borders.
cssmedium 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
Art/design-themed hero backgrounds, cultural or editorial layouts, typographic ambient displays referencing modernist aesthetics.
When not to
Contexts requiring legible static text or user interaction — the constant scroll competes with readable content.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the WORDS array to brand slogans, set C.red to '#FF4500', and increase scroll speed by changing sp from 0.05 to 0.09. 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
- word list (WORDS array)
- scroll speed (sp = 0.05)
- color palette (C object)
- tile primary ratio (Math.random() < .55)
- border/bar thickness (7px, 9px)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard (REDUCED)
- visibilitychange stop/start
- duplicate() seamless-loop clone pattern
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Block widths are random at paint time — layout differs on every load
- Requires Archivo Black from system fallback; no Google Fonts import so weight may not render as intended on all devices
More Primary Grid Compositions components
- The Rebalancing Gridneoplastic grid of black lines slides to new layouts while red, blue, and yellow cells fade in, resolving into a balanced composition every few seconds.
- Broadway Boogie WoogieColored squares pulse along yellow grid avenues like NYC traffic; intersection dots blink in red, blue, and yellow referencing neoplastic's 1943 painting.
- Self-Assembling Compositionneoplastic grid builds itself every 4 s: cells scale in staggered, black lines draw outward, primary colors fill random regions, then recomposes anew.
- Trading WeightRed and blue blocks trade mass across a fixed axis; a yellow counterweight keeps the neoplastic grid balanced. Slow eased transitions reseed randomly.
- Self-Painting CellsA fixed asymmetric neoplastic grid whose cells autonomously cycle through red, blue, and yellow with smooth CSS transitions, like an unattended painter at…
- Victory Boogie MarqueeA 9x9 neoplastic grid rotated 45° as a diamond; red, blue, and yellow squares ripple diagonally in a boogie-woogie march via time-stepped index.