webpacktypewriter
v1.8.0
Published
> Simple library to create a typewriter animation
Downloads
3
Readme
Simple Typewriter written in ES6 and prepared with webpack
Simple library to create a typewriter animation
Documentation
Usage
You have to instantiate the top level Typewriter Object and pass it parameters, which include the id for the root element that you want to inject the typewriter into. The second parameter, optional, will be custom settings that will be merged with the default settings.
var obj = new Typewriter('rootID', {typingSpeed: 'fast'});
obj
.typeCharacters('Hello')
.pauseFor(1000)
.deleteCharacters(3)
.typeCharacters('y')
.start();