vue-typewriter-2
v1.0.1
Published
Vue Component that types.
Downloads
4
Readme
For Vue 1.x see the 1.x branch.
Install
npm
npm install vue-typewriter --save
yarn
yarn add vue-typewriter
Usage
import Vue from 'vue'
import Typewriter from 'vue-typewriter'
Vue.use(Typewriter)
<typewriter
:speed="200"
:full-erase="true"
:start-delay="300"
:words='["Awesome!","Amazing!"]'>
:erase-delay="300"
Vue Typewriter is
</typewriter>
All Options
- words: (Array) List of strings which are the words to be typed. Default: []
- speed: (Number) time between each letter is typed in milliseconds. Default: 300ms
- full-erase: (Boolean) whether there should be backspace-like deletion (false) or select and erase (true). Default: false
- start-delay: (Number) how long after each word is typed AND erased should the next one start. Default: 200ms
- erase-delay: (Number) how long after each is typed should it be erased. Default: 300ms
- cursor: (Boolean) should the cursor appear. Default: true
- cursor-symbol: (String) provide alternative cursor symbol or string. Default: |
License
This project is licensed under the MIT license.