webpacktypewriter

1.8.0 • Public • Published

Simple Typewriter written in ES6 and prepared with webpack

Simple library to create a typewriter animation

travis build codecov coverage npm

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();

DEMO NPM

/webpacktypewriter/

    Package Sidebar

    Install

    npm i webpacktypewriter

    Weekly Downloads

    2

    Version

    1.8.0

    License

    MIT

    Last publish

    Collaborators

    • awlui