Install using NPM, GIT or just hotlink the script.
npm install typeplay --save
git clone ...npm updatenpm run build
From a Hotlink
The blinking cursor is a "|" character position and animated using css. Depending on your choice of
font-size you might need to modify the
margin-right properties. Adjust until blinking cursor stops dislocating the characters around it.
TypePlay comes in CJS and IIFE formats pre-build:
If you would like to just add it in your browser and use it straight away use any of the IIFE version:
If you would like to package it together with other scripts in your App using Webpack or any other alternatife use the CJS version:
Digging a little deeper
If you dig a little deeper into the source you will notice that there are 2 classes -
TypeWrap. The second is there only to provide the chainability. Building the
TypePlay source (the index.js file) will result in building