屏幕震动
整屏短促抖动:表单报错、危险操作时给用户'实感',把游戏的打击感搬进网页。
实现提示词
Screen shake on form error: the whole view shakes for 0.4s at medium intensity, then settles.Screen shake with 400ms directional decaying keyframes; intensity scales with severity.设计规范条目
### 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/