扫一扫分享
typed.js是一款模拟控制台打印文字效果的js插件。typed.js可以自由的控制要打印的文字,以及打印的速度等,可以制作出逼真的打印文字效果。
npm install typed.js
yarn add typed.js
bower install typed.js
This is really all you need to get going.
// Can also be included with a regular script tag import Typed from 'typed.js'; var options = { strings: ["<i>First</i> sentence.", "& a second sentence."], typeSpeed: 40 } var typed = new Typed(".element", options);
手机预览