Presets

Pulse glow button

A call-to-action that sends a soft ring of its own color outward, again and again.

CSSTailwindReactGIFMP4
trigger: loop
00.000 / 2.000s
timing
style
content
20 max

npm i motion · the component uses motion/react

How it works

The pulse glow button sends a ring of its own color outward from its edges and lets it fade, again and again. It is the classic "look here" treatment for a trial signup or a live-chat launcher. There are no extra elements; everything happens in box-shadow.

The pulse keyframe starts with a zero-spread shadow at 55% opacity, expands it to Glow spread pixels while the alpha drops to zero at 70%, and holds there until 100%. The last 30% is a built-in pause so pulses do not run into each other. Since a box-shadow follows border-radius, the ring matches the pill shape (the default radius is 999px) or any other corner setting.

Parameters: Label, Button color, Text color, Glow spread, Corner radius, Duration and Easing. A spread of 10 to 20px is noticeable without crowding nearby elements; leave enough margin around the button because the shadow is drawn outside the layout box but can overlap neighbours. The default ease-out makes each ring leave quickly and fade slowly.

Box-shadow is a paint property, so the browser repaints the button area on every frame. That is fine for one CTA, but if you plan to pulse many items (a list of notification badges, for example), use a pseudo-element ring animated with transform: scale and opacity instead, which stays on the compositor. Stop the pulse once the user has interacted, and under prefers-reduced-motion.

Can I stop the pulse after a few repeats?

Yes. In the copied CSS change the iteration count in the animation shorthand from infinite to 3, for example. The button pulses three times on load and then sits still, which is often enough to draw attention without becoming noise. In React, set repeat in the transition to a number instead of Infinity.

Why does the glow not affect the layout?

Box-shadow is drawn outside the element's box but does not take space in the layout, so neighbouring elements are not pushed away. The flip side is that it can overlap them or be clipped by an ancestor with overflow: hidden. Give the button some margin, and check that no parent clips the glow.

How is this different from the Glow border hover effect?

This button pulses continuously with a fading spread ring, so it works as a passive attention cue. Glow border is a hover effect on a card: the edge lights up and a blurred halo appears only while the pointer is over it. Use the pulse for a single CTA, and the glow border for interactive cards.

relatedMore like this

all buttons →
01 Loading button loop
02 Shine sweep button loop
03 3D press button press
04 Border draw button hover
05 Gradient shift button loop

Export

format
height

480p max · small watermark · 3 per day · remove limits