design-infraGitHub
Report a problem or share feedback← Catalog

Error state shake

free

transitions/error-state-shake

Form validation feedback — invalid email, wrong password, missing required field, mismatched confirmation. The input shakes left/right with overshoot, the border switches to error color, and a message reveals beneath. After a hold timer (long enough to read the message), border + message fade back to neutral. Optional: typing into the input cancels the auto-revert immediately.

state · enter · press — subtlerecipeRefinedTrustworthy
$npx skills add Jakubantalik/transitions.dev # then ask: "apply the error-state-shake transition"
Source
transitions.dev
Kind
transition
Categories
transition
Use as
recipe — technique you apply to your own markup
Applies to
forminput
Motion
on state, enter, press · subtle · css · low cost · respects reduced motion
Tags
css
Licence
Free for unlimited personal/commercial use in your products; no republishing the collection. Pro (React/TS variants) $9/mo or $149 lifetime.
Live demo
transitions.dev
Docs
transitions.dev