This Vue.js plugin emulates typing in a text.
Usage
Installation
npm i vue-typewrite
in your main.js file
;; Vue;
In your application
Configuration
name | type | default | description |
---|---|---|---|
text | string - required | the text to be typed | |
typeDelay | number | 0 | time until the text starts typing |
typeSpeed | number | 150 | time between each char typed in ms |
caretColor | string | '#101010' | color of the caret (any css color) |
textColor | string | ''inherit | color of the text (any css color) |
For multiline texts use \n
for now.
example
contribute
- clone this repo
npm i
npm run serve
- make changes on new branch
- update README
- submit PR
Todo
- be able to delete text
- be able to select text
- be able to loop the writing
- accept array of textelements
- render html elements like
h1
,p
etc. - emit events
- customize caret (like underscore, solid, easing)
License
Copyright © 2019-Present, René Heinen. All rights reserved.