Guides / Game FX

Screen Shake

Screen shake: A brief full-screen jitter—gives users 'physical feedback' on form errors or dangerous actions, bringing game-like impact to the web.

Live demo

Implementation prompts

Standard

Screen shake on form error: the whole view shakes for 0.4s at medium intensity, then settles.

With motion

Screen shake with 400ms directional decaying keyframes; intensity scales with severity.
Design spec entry
### Screen Shake (#screenshake)

Category: Game FX

Screen shake: A brief full-screen jitter—gives users 'physical feedback' on form errors or dangerous actions, bringing game-like impact to the web.

- Do: Screen shake on form error: the whole view shakes for 0.4s at medium intensity, then settles

With motion: Screen shake with 400ms directional decaying keyframes; intensity scales with severity.

Live demo: https://uidesignmd.com/guides/screenshake/