Pulse Ring
An expanding pulse ring, great for live indicators.
<div class="relative w-10 h-10" role="status" aria-label="Loading"> <span class="absolute inline-flex h-full w-full rounded-full bg-indigo-400 opacity-60 animate-ping"></span> <span class="relative inline-flex rounded-full h-10 w-10 bg-indigo-600"></span> </div>
Free to use in personal and commercial projects. No attribution required.
Variants
Same component, different looks. Preview each one live and copy the code you like.
Emerald
Green pulse for live status like online presence or active sync.
Large
Larger pulse for map pins and hero callouts that need attention.
Halo, static
Static halo without motion for reduced motion contexts or calm UIs.
About this pulse ring
The pulse ring is the live indicator: a solid dot with an expanding halo that says 'active now'. It is the pattern for live streams, online status, recording indicators, and location sharing. The animate-ping halo expands and fades on a loop while the core stays solid.
This live indicator is two spans: the ping halo (absolute, animate-ping) and the solid core. Indigo suggests activity; swap to red for recording, emerald for online, amber for away.
Pulse rings attract attention by design. Reserve them for genuinely live or urgent states. A pulsing dot on every card trains users to ignore all of them.
A static green dot cannot say right now. It might mean online, or it might mean online three hours ago with a stale session. The expanding halo is motion that reads as a heartbeat: something is happening at this moment. That is why live badges, recording indicators, and driver-arrival states pulse; stillness would let the user doubt whether the state is fresh, and doubt kills the feature.
A relative wrapper holds two spans. The halo is absolute inset-0 rounded-full bg-indigo-400 opacity-60 animate-ping: Tailwind's ping keyframe scales it up while fading it out, creating the expanding ripple. The core is a relative solid bg-indigo-600 circle that anchors the effect. Keeping the halo at opacity-60 stops it from overpowering the core it surrounds.
Pace the heartbeat to the meaning: 1s for urgent states like recording, [animation-duration:2s] or slower for ambient presence like online. In dense interfaces, shrink the ripple with scale-75 on the ping span so the halo stays tight. Always match the halo's hue to the core at lower opacity; a mismatched halo looks like a glitch rather than an aura.
The mistake is letting the halo collide with its neighbors. The ping animation scales the halo to roughly twice its size, so in a tight row of icons or a dense list, the ripple washes over adjacent text and buttons on every pulse. Budget the space: give the wrapper enough margin or padding to contain the full expansion, or the live signal becomes visual noise for everything around it.
Where to use it
- ✓ Live stream indicators
- ✓ Online status dots
- ✓ Recording indicators
- ✓ Location sharing
Customization tips
Change colors by state: emerald for online, red for live/recording, amber for away. Slow the pulse with [animation-duration:2s]. Size the core with w-8/w-10/w-12.
Design notes
When to use
Use it for genuinely live states: live stream badges, online status dots, recording indicators, and active location sharing. The expanding halo says active now in a way static dots cannot. Match the color to the state so the meaning is instant.
What to avoid
Do not pulse every dot on the page. When everything pulses, users learn to ignore all of them and the live indicator loses its power. Do not use it for static states like a completed upload.
Accessibility
The pulse is motion, so respect prefers-reduced-motion with a static dot. Never let color be the only signal; pair the dot with text like Live or Online for colorblind users.
Frequently asked questions
How do I make a pulsing dot?
Layer two spans: an absolute animate-ping halo and a solid core. The ping expands and fades while the core stays constant.
What colors mean what for status?
Emerald/green for online, red for live/recording or busy, amber for away, gray for offline. These are universal conventions.
Can pulsing animations cause issues?
Rapid pulsing can bother users with vestibular disorders. Keep the pulse slow and respect prefers-reduced-motion.
How do I make the pulse ring expand outward like a sonar wave?
Animate a ring element's scale from 1 to about 2 while fading its opacity to zero, then loop it. Tailwind's animate-ping does exactly this. Layer it behind a solid dot so the dot stays centered while the ring radiates outward.
How do I use a pulse dot for a live indicator?
Pair a green pulsing dot with the word 'Live' next to it, and give the container role='status' so screen readers announce state changes. The pulse draws the eye, but the text is what makes the meaning clear to everyone, including people who cannot see the color.
Does the pulse animation respect reduced motion settings?
By default, no, CSS animations keep running. Wrap the pulse in a prefers-reduced-motion media query and either stop the animation or replace it with a static dot. The design notes on this page recommend a static fallback so users who asked for less motion still see the status dot.