指南 / 游戏特效

飘字提示

获得物品/金币时飘起的文字:'+100 金币''任务完成'从屏幕中央上飘。比弹窗更轻,比 Toast 更有游戏味。

在线演示

实现提示词

标准

Floating text: on pickup, spawn text at screen center ('+100 Gold'), float up 60px and fade over 1s.

含动效

Float-up 60px + fade over 1000ms, slight scale-in on spawn.
设计规范条目
### Floating Text (#floattext)

Category: Game FX

Floating pickup text: '+100 Gold' or 'Quest Complete' drifts up from center. Lighter than modals, more game-y than toasts.

- Do: Floating text: on pickup, spawn text at screen center ('+100 Gold'), float up 60px and fade over 1s

With motion: Float-up 60px + fade over 1000ms, slight scale-in on spawn.

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

规范包

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

已选指南 0 / 20