∞ forever components

Buttons & Toggles

Studio Recording Tally Rocker

A square rocker switch on a studio tally panel that toggles between a grey ARMED state and a red REC ON state with a lit tally dot, while a footer reads STANDBY or RECORDING; the preview flips it every few seconds.

cssmedium complexitymoderate motionclickaccessible

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 →
1

When to use it

Recording, streaming and broadcast tools where one clear on-air toggle needs a visible tally state and a status line.

When not to

Settings lists with many switches, or places where a bold red on-air state would read as an error.

Working with an AI agent

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

Edit the labels and status strings in setOnAir() (ARMED, REC ON, STANDBY · READY, RECORDING · 4K 60P), recolour the live state through --sc-red and --sc-red-text, and change the card through --sc-cream, --sc-navy and --sc-border. The toggle is a native button with aria-pressed; keep it in sync and keep the demo-v1 lifecycle. Theme: tokens live in :root and the dark variant is [data-theme="dark"]; ?theme= or a {type:'forever:theme'} postMessage switches at runtime.

Safe to edit

  • state labels and status text in setOnAir()
  • live colour (--sc-red, --sc-red-text)
  • card palette (--sc-cream, --sc-navy, --sc-border, --sc-amber)
  • panel text (STUDIO A · BROADCAST, CH-01 MASTER, TALLY STATE)
  • demo cadence (timer > 240 frames)
  • theme tokens (:root defaults + [data-theme=dark] overrides)

Keep intact

  • demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions

Known limitations

  • State remains local to each mounted instance; format/theme remount preserves takeover, not component values.
  • Rests until used (owner rule, 2026-11-21): the idle demo runs only when a host sets window.__foreverPreview.demoEnabled to true, such as the preview Forever button. The first input still stops it for good.

creativestudiomultitrackaudiovideo-editingtimelinestudio-recording-tally-rockerbuttonrocker-switchtallybroadcastrecordingsam-createson-airilluminated

More Buttons & Toggles components

  • Magnetic ButtonGraphite pill key with a jade rim on hover; it drifts in an idle orbital float and is pulled magnetically toward the cursor with a label inner-parallax.…
  • Gooey Liquid TogglePill toggle where an SVG goo-filtered blob stretches and merges as it slides from off to on, shifting from grey to madder rose.
  • Morphing Action FABDomed saffron FAB whose plus icon rotates 135° to an X on click, fanning six machined icon discs outward in a staggered radial spring animation. Physical…
  • Material RippleDark rounded button that spawns an expanding ink ripple from the tap point; idles by firing ripples from random positions every 1.5 s.
  • Neon Glow PulseNeon-gas tube button: orange-red tube with a hot near-white core on a brushed steel backplate with two-layer shadow, standoff clips and a faint…
  • Jelly PressAurora-gradient button squashes and stretches with a spring keyframe animation on click; cycles autonomously until first deliberate input idle squish…