Typewriting utility for JavaScript
Typewriter.js is your on-the-go, virtual typewriter that offers an easy and hackable way of producing and maintaining typewriter-like animations on text.
npm install eo-typewriterjsyarn add eo-typewriterjshttps://cdn.jsdelivr.net/npm/eo-typewriterjs@latest/dist/typewriter.js- Clone the GitHub repository
https://github.com/EOussama/typewriterjs.git. - Run
npm installto install all the dependencies. - Run
npm run buildto build the package. - The production script will be placed in the
distfolder.
The following example types the string “Hello, world!”:
index.html
<div id="target"></div>script.js
var tw = new Typewriter("#target");
tw.type("Hello, world!").start();