04.15 ยท Micro-Interactions
Notification Badge Pulse
A badge on an icon pulses to catch the eye. Best for unread messages.
Watch it
It moves by itself. Pause it, or click an icon to clear its badge; Reset brings the badges back.
Inside, the bell's badge is shown bigger: with Grow it swells from the inner outline to the outer one and back; with Ring a soft halo spreads to the dashed circle.
Pulses forever: the badges never stop, even after you have seen them; Stops after three: they pulse three times, then rest. Press Reset to watch the three pulses again.
Try it
Change a setting and see the difference as it moves.
Pulse style
Grow stays contained; Ring spreads a soft halo.
Speed
Fast feels urgent; slow is easy to miss.
How much it grows
Much bigger than a third starts to feel alarming.
Copy the prompt
Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.
Add a pulsing notification badge to [the icon that has something new, such as a bell or an inbox]. Place a small colored dot or number on the icon's corner and let it pulse, growing and settling back or sending a soft ring outward, so it catches the eye without demanding attention. Give the badge a thin border in the background color so it seems to float above the icon. Remove the badge once the visitor has opened what it points to, and when the settings ask for it, stop the pulse after three beats. If the visitor has reduced motion turned on, keep the badge still. Match the settings listed below.
Your settings
Replace the words in brackets with your own element. Your settings are added at the end.
Free and open source. If this helped, a star on GitHub helps other people find it.
Star on GitHubWhat it is
The full explanation is in README.md.