Vue-Typeout文本 (Vue-Typeout-Text)
Type out the text with vue.js.
使用vue.js输入文字。
<typeout-text content="Hello world!" speed="2" />
Animate.css支持 (Animate.css support)
If you want to text by typed out with animation you can add animate.css from CDN into head in index.html then set animation attribute to any of animations from animate.css
如果要通过动画输入文字,可以将CDN中的animate.css添加到index.html的头部,然后将animation.css中的任何动画设置为动画属性
<typeout-text content="Hello world!" speed="1.5" animation="swing" />
安装 (Installation)
Install with NPM
使用NPM安装
npm i vue-typeout-text
then import and use with Vue
然后导入并与Vue一起使用
Vue.use(vueTypeoutText)
翻译自: https://vuejsexamples.com/type-out-the-text-with-vue-js/