forever components

Swiss Typographic

Rule Lines

Six horizontal bars slide in from alternating edges then pulse slowly. One red accent rule and a vertical axis enforce Swiss typographic restraint.

cssmedium 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

Swiss-style design showcases, editorial hero sections, brand decks needing structured typographic motion without distraction.

When not to

Content-heavy layouts where horizontal bars compete with text. Light-background UIs — background is hardcoded dark (#0f0f10).

Working with an AI agent

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

Change the red accent line index from redIdx=3 to redIdx=0 (thickest bar), set --sw06-red to #0057ff, and slow the entrance by updating the slide duration from .9s to 1.4s. 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

  • tier positions (tiers array)
  • bar thicknesses (weights array)
  • red accent index (redIdx)
  • pulse durations (pulseDur formula)
  • CSS color variables (--sw06-red, --sw06-ink, --sw06-bg)
  • vertical axis position (left:62%)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

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

Known limitations

  • Background color hardcoded — must edit --sw06-bg to change from dark theme
  • Pulse rhythm requires editing keyframe percentages; JS only sets initial delay/duration

swisstypographygridhorizontal-rulesrhythmcss-animationgeometric

More Swiss Typographic components

  • Grid SystemA 12x12 CSS grid of ink, outline, and red accent blocks that scale in and decompose in staggered rhythm, composing an asymmetric Swiss typographic layout.
  • Type RampFive-step type scale drifts horizontally and fades in a staggered sine wave on a Swiss baseline grid; red accent rules breathe in opposition.
  • Column FlowThree columns of text-block bars flow in from the left, scale to full justified width, then retract in staggered typographic rhythm with red accent lines.
  • Baseline TickRed vertical bar sweeps pendulum-style across a Swiss baseline grid at 120 BPM; "tempo" and "measure" flash in sync with each beat.
  • Poster BuildSwiss-grid poster assembles itself: ink and red panels wipe/slide into a 12x16 grid while "POSTER BUILD" rises line by line beneath a red rule.
  • Rotated HeadlineBold headline rotates 90 degrees to snap vertical along a modular grid column while a red accent block slides in to fill negative space.