指南 / 游戏特效

屏幕震动

整屏短促抖动:表单报错、危险操作时给用户'实感',把游戏的打击感搬进网页。

在线演示

实现提示词

标准

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/

规范包

从所选指南中导出实现规则和链接。

已选指南 0 / 20