Buttons & Toggles
Neon Glow Pulse
Amber pill button on near-black that breathes a bright neon bloom via opacity pulse on a pseudo-element; hover shifts background and text color.
csslight complexitysubtle motionhover
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
Dark-mode CTAs, sci-fi or cyberpunk UI, hero sections needing an ambient glowing button with no JS overhead.
When not to
Light backgrounds (background is hardcoded near-black). Contexts where constant glow motion would compete with dense content.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change accent to hot pink by setting --accent-cyan to #f0abfc, update border and text-shadow color references to match, and slow the pulse to 3600ms by editing --dur-loop.
Safe to edit
- accent color (--accent-cyan: #C0B459)
- pulse duration (--dur-loop: 2400ms)
- bloom opacity peak (50%{opacity:1})
- button padding and font size
- border-radius (--r-pill)
- hover background intensity (rgba alpha 0.14)
Keep intact
- ::before pseudo-element bloom layer (opacity-only animation for perf)
- is-paused class + visibilitychange listener
- prefers-reduced-motion guard (animation:none + static opacity:0.6)
Known limitations
- Background color and radial gradient are hardcoded — must edit CSS to use on any other background
- Button has no aria-label; label text 'Activate' is visible but a real action should be wired to click
More Buttons & Toggles components
- Magnetic ButtonDark pill button drifts in an idle orbital float; cursor proximity pulls it magnetically with a label inner-parallax and emerald-to-copper glow on hover.
- Gooey Liquid TogglePill toggle where an SVG goo-filtered blob stretches and merges as it slides from off to on, shifting grey to magenta. Auto-cycles as demo.
- Morphing Action FABGradient FAB whose plus icon rotates 135° to an X on click, fanning six icon buttons outward in a staggered radial spring animation. Auto-cycles in demo mode.
- 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.
- Jelly PressAurora-gradient button squashes and stretches with a spring keyframe animation on click; auto-cycles idle squish every 2.1s to stay alive at rest.
- Stroke-Draw OutlineGhost button whose rounded-rect SVG border self-draws via stroke-dashoffset on hover; an idle loop auto-cycles draw/erase every ~2s.