Buttons & Toggles
Tactile Spring Press
Tactile pill button that compresses to scale(0.965) in 90ms (--fc-ease-sharp) on press and rebounds in 260ms (--fc-ease-spring) on release. Clean modern register.
csslight complexitysubtle motionclickmobile-readyaccessible
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
1
When to use it
Primary tactile CTAs, confirm triggers, and interactive toolbar pills.
When not to
Quiet tertiary links.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Swap --mst3-acc and button label. Under reduced motion, scale bounce is disabled and press applies an instant pressed tint.
Safe to edit
- theme tokens (:root + :root[data-theme=light])
- button label
- press scale (0.965)
Keep intact
- IIFE wrapper
- :root --fc-* motion spine block
- prefers-reduced-motion instant-tint fallback
- visibilitychange guard
- demo-v1 lifecycle
Known limitations
- Rests still until pointer/key input or host demoEnabled=true.
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…