2
网页打字特效开源库-tiper-js
source link: http://osp.io/archives/7086
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
tiper-js是一个开源的JavaScript 库,可在网页上模拟真人打字时的展示动画。
安装: npm i tiper-js
text: string
(required) – 文字内容.hesitation: number
– 从 0 to 1. 设置打字延迟时间 默认0.45
.wordsPerMinute: number
: – 打字速度. 默认40
.pauseOnSpace: boolean
: – 是否空格延迟. 默认false.pauseOnEndOfSentence: boolean
: – 是否断句. 默认 true.glitch: boolean
: – 是否增加偶尔迟疑效果.
更多参数请参考原文档。
演示:https://carlelieser.github.io/tiper-js/
No Comments Yet
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK