Shake Animation
Attention-grabbing shake animation for error states, invalid inputs, or notifications. Creates a side-to-side wobble effect.
CSS7/16/2025
#css#animations#error-handling
CSS
@keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } 20%, 40%, 60%, 80% { transform: translateX(5px); } } .shake { animation: shake 0.5s ease-in-out; } .shake-subtle { animation: shake 0.3s ease-in-out; transform: translateX(-2px); }
...
Loading comments...