Shake
Stuck
Text
Type
Colour
Ground
Motion
About this effect
Shake is how a label says something went wrong without shouting. It gives a quick head shake, side to side, each swing smaller than the last, and turns from its text colour to a warning colour as it does; a small warning mark pops in beside it. Then it holds still in the warning colour, long enough to be read, before easing back and trying again.
Use it when an agent is stuck, a request failed or a tool errored, and swap back to a working label when it recovers. It is real text, so it can be read, selected and translated; change the words from your app whenever the work changes and the label rebuilds itself around them. Force sets the size of the shake.
- Formats
- React, HTML
- No dependencies
- Built with
- CSS and a little JS
- Default font Bricolage Grotesque
- Plays
- Loop
- Reduced motion
- Respected
- Shows the finished frame
Accessibility. One real heading, read once with its words; the moving letters and the warning mark are hidden from screen readers. Under reduced motion the label rests in its warning colour beside the mark, without shaking.
Also known as error shake animation, failed state text, warning text effect, AI error indicator, head shake animation, invalid input shake.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.