Animate text paragraph like typing on the keyboard based on char or word
Install and save to package.json
from terminal:
$ npm install animate-typing-text --save
use with a bundler like webpack or browserify:
var AnimateTypingText = require('animate-typing-text')
If you need a standalone <script>, though, a minified browser build that attaches to the global namespace as AnimateTypingText is provided here:
<script src="animate-typing-text.min.js"></script>
You can check it on the demo folder
var AnimateTypingText = require('animate-typing-text')
// With options default
new AnimateTypingText('.paragraph')
// With custom options default
new AnimateText('.paragraph', {
time: 1000,
letter: 'char' // Now there have two type (char & word)
onAnimated: function () {console.log('done!')}
})
This project is licensed under the MIT License - see the LICENSE file for details