animate-typing-text

0.0.2 • Public • Published

animate-typing-text

Animate text paragraph like typing on the keyboard based on char or word

Demo

Demo animate-typing-text

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 <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

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

Package Sidebar

Install

npm i animate-typing-text

Weekly Downloads

3

Version

0.0.2

License

MIT

Last publish

Collaborators

  • darwinchyd