GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

08One-shot shake reset pattern

Re-adding the same class doesn't replay a finished animation, so a few lines of JS force a reflow to make the shake restart from zero every time.

Best forRepeated wrong-password attempts, the same field failing validation again and again

animationendreflowJS 6줄
One-shot shake reset pattern
Open in a new tab

08 One-shot shake reset pattern — Measured area 0.56% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · 9 CSS Shake Animation Examples for Form Errors

The post this demo lives in

9 CSS Shake Animation Examples for Form Errors - preview of all 9 demos9 CSS Shake Animation Examples for Form ErrorsType a wrong password and the box shakes before you read why — that's a css shake animation, code that makes a form say See all demos in this post

If you like this effect - similar demos