∞ forever components

Buttons & Toggles

Orbital Gravity Button

Commit button ringed by orbiting particles that contract under the cursor, pulse outward when toggled and turn moss green when deployed.

css+canvasmedium complexitymoderate motionpointeraccessible

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

Commit or deploy actions in developer and infrastructure tools where a toggle should show live activity around it, with a clear on and off state.

When not to

Pages with several primary actions (one per view), or low-power contexts where a constantly moving canvas is unwelcome.

Working with an AI agent

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

Edit the button labels and status strings in toggle() (DEPLOY CLUSTER, ONLINE // ACTIVE, ORBITAL WELL lines), the particle count (the 36 in the P loop) and orbit radii (base 88 + 16 steps), and the accent via --ogb-accent. Keep the native button with aria-pressed and the demo-v1 lifecycle. 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

  • Forever Opus tokens on :root (--bg, --surface*, --text*, --border*, --accent) — one moss accent, no gradients
  • copy and data values in markup/script

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
  • theme hook: ?theme= bootstrap, forever:theme message listener and :root[data-theme="light"] tokens
  • IIFE wrapper, visibilitychange sleep, prefers-reduced-motion guard, time-based (dt) animation

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.

ctaorbitalparticlesmagneticcommit

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…