How it works
The pulse ring is a small solid dot with circles radiating out of it, the same signal maps use for your live location. The core is a static circle, inset 38% from each side of the box. Around it sit two ring elements with a 2px border. Each runs the ping keyframe: from scale(0.25) at full opacity to scale(1) at zero opacity.
The second ring starts half a cycle after the first (its delay is Duration divided by 2), so one ring is always on its way out while the other begins. The default expo-out easing makes each ring burst out quickly and then drift, which is closer to how a sonar pulse feels than a linear expansion.
Besides loading, it works well for "live" or "recording" markers, map pins, new-feature hotspots on onboarding tours and online-status dots. Parameters: Size, Color, Duration and Easing. At small sizes (24 to 32px) next to text, raise Duration to 2.5s or more so the effect stays in the background. Because the ring borders are scaled, they get thinner near the start of each pulse and reach 2px only at full size.
Transform and opacity are the only animated properties, so dozens of pins on a map remain smooth. When it is decorative (a map marker), add aria-hidden; the default role="status" with aria-label="Loading" is right only when it actually represents a pending task.
How do I use the pulse ring as a live indicator next to text?
Set Size to around 20 to 24px, pick a red or green Color, and place it inline before a label such as "Live". Change the root role from status to img with an aria-label describing the state, or mark it aria-hidden if the text already says it. For a simpler on-off live dot, the Blink preset is another option.
Can I add a third ring?
Yes, in the copied code duplicate a ring element and spread the delays evenly: with three rings use 0, one third and two thirds of the duration. More rings make the pulse denser and more urgent. Keep the core element last in the markup so it paints on top of the rings.
Why do the rings look thin at the start?
The rings are scaled with transform, and scale affects the border as well as the size. At scale(0.25) the 2px border renders as half a pixel. That is what makes the pulse look like it emerges from the dot. If you need constant ring thickness, see the Ripple preset, which grows circles with inset instead of scale.