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

07Shake via :user-invalid

With no JS at all, the input:user-invalid pseudo-class alone triggers the shake once the browser marks a touched field invalid.

Best forEmail/phone format checks, JS-free static forms

:user-invalidpattern500ms
Shake via :user-invalid
Open in a new tab

07 Shake via :user-invalid — Measured area 0.507% · moving frames 8/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