0.0.2 • Published 8 years ago
animate-typing-text v0.0.2
animate-typing-text
Animate text paragraph like typing on the keyboard based on char or word
Demo
Installing
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 , 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
Usage
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!')}
})
License
This project is licensed under the MIT License - see the LICENSE file for details