How it works
This is the chat bubble with three hopping dots that messengers show while the other person writes. The bubble is an inline-flex box with a large border radius and a much smaller bottom-left radius, which gives it the little tail corner of an incoming message. Inside, three dots run a keyframe called hop: at 30% each dot moves up by Hop height and goes from 45% to full opacity, then settles back down.
Staggered delays (index times Stagger) make the hop travel left to right. Padding and corner radii are derived from Dot size, so if you grow the dots the bubble grows with them and keeps its proportions.
Use it in support widgets, comment threads with live presence, or while a chatbot reply is being generated and nothing has arrived yet. Parameters: Dot size, Dot color, Bubble color, Hop height, Duration, Stagger and Easing. A Hop height of about three quarters of Dot size looks natural; anything larger makes the dots leave the bubble visually. Match Bubble color to the incoming message background in your chat so the indicator looks like a real message placeholder.
The root uses role="status" with aria-label="Typing". Screen readers may only announce it once, so for a better experience also put text like "Ana is typing" in a visually hidden live region. Motion is limited to transform and opacity on three small dots.
How do I make the bubble look like an outgoing message instead?
Swap which corner has the small radius. The exported CSS sets border-bottom-left-radius to 60% of the dot size; change it to border-bottom-right-radius and reset the left one to the full radius. Then align the bubble to the right of your chat column and use your outgoing message color for Bubble color.
Why do the dots fade as well as hop?
Opacity rises from 0.45 to 1 at the top of each hop. A pure position change on 8px dots is easy to miss, especially on dense chat screens; the brightness change makes the travelling wave readable even if the hop is only a few pixels. Set both opacity values to 1 in the keyframe if you prefer solid dots.
Can I show this while a chatbot reply is streaming?
Yes, that is a common use. Render the typing indicator when the request starts and replace it with the message element when the first chunk arrives. Keep it in the same position the message will occupy so the layout does not jump. Update the aria-label to something like "Assistant is replying" so the status makes sense.