细节与特效 · 耐看的小细节
打字机Typewriter
- 过程感
- 叙事
- 慢
文字一个字符一个字符地出现,像有人在实时输入,光标在后面闪。
什么时候用它
AI 回答、终端输出、开场文案用它;正文和需要快速浏览的内容不要用,会拖慢阅读。
参数
per character 40ms · via steps() · caret 1s blinks · no line-height change
配方
每个字符 40ms光标 1s 闪烁打字机 → via steps() · no line-height change
给 AI 的一句话
做打字机效果:每 40ms 显示一个字符,用 steps() 实现,末尾光标 1s 闪烁,文字出现时不改变行高。