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-typewriterjs
yarn add eo-typewriterjs
https://cdn.jsdelivr.net/npm/eo-typewriterjs@latest/dist/typewriter.js
- Clone the GitHub repository
https://github.com/EOussama/typewriterjs.git
. - Run
npm install
to install all the dependencies. - Run
npm run build
to build the package. - The production script will be placed in the
dist
folder.
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();