Constructivist
Dynamic Flag
A red banner waves and snaps along a black diagonal strut, with a white slab bar, rhythm tick marks, and a Suprematist-style square accent on a dark ground.
canvasmedium 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
Constructivist or propaganda-art themed hero sections, political/historical editorial, bold ambient backgrounds needing strong diagonal composition.
When not to
Light backgrounds (hardcoded dark ground), contexts requiring legible text overlays over the flag area, or low-end devices where the per-frame blit + wave math may stutter.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the banner color to deep blue by setting RED='#1a3bd1' and RED2='#122a9e', increase segment count to 20 (SEG=20), and slow the wave speed by changing t*4.0 to t*2.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
- banner color (RED, RED2 palette vars)
- wave speed multiplier (t*4.0)
- banner thickness (band=S*0.30)
- segment count (SEG=14)
- diagonal angle (ANG=-0.62)
- white slab bar size (bw=len*0.40, bh=band*0.24)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- offscreen groundCv cache pattern (prevents gradient alloc in rAF)
- prefers-reduced-motion static frame fallback
- visibilitychange stop/play guard
- IIFE wrapper
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Background color hardcoded to dark near-black — must edit BG and CSS to change
- No touch or pointer interactivity — purely passive
- White slab bar does not clip to banner edges on extreme wave amplitudes
More Constructivist components
- Diagonal ThrustRed and black arrow-tipped slabs sweep along a -28° diagonal axis over a black field; a dark-red disc and a bold type bar anchor the composition.
- Red WedgeRed wedge drives into a recoiling black disc, scattering shards; bold slab type fades in after impact. Looping Constructivist poster animation.
- Rotodynamic18 slab bars and word spokes radiate from an off-center hub, rotating at staggered speeds in a Rodchenko red-black-bone palette.
- Floating FormsSuprematist field: tilted black square anchors red and off-white bars, squares, and a dot drifting in slow staggered CSS cycles on near-black.
- MegaphoneA Constructivist megaphone emits expanding concentric red and paper-white arc rings across a dark field with bold diagonal bars. Runs autonomously.
- Gear PosterThree SVG gears spin at different speeds while red diagonal bars slam in and slab-type text assembles — all on a dark constructivist grid.