Typewriter.js
On the go typewriting utility for JavaScript.
Install / Use
/learn @eoussama/Typewriter.jsREADME
<p align="center">
<a href="http://eoussama.github.io/typewriter.js">
<img src="assets/typewriter.svg" alt="Logo" width="200px">
<h1 align="center">Typewriter.js</h1>
</a>
<p align="center">Typewriting utility for JavaScript</p>
<p align="center">
<img src="https://img.shields.io/github/release/EOussama/typewriterjs.svg">
<img src="https://img.shields.io/github/downloads/EOussama/typewriterjs/latest/total.svg">
<img src="https://img.shields.io/github/languages/code-size/EOussama/typewriterjs.svg">
<img src="https://img.shields.io/github/license/EOussama/typewriterjs.svg">
</p>
</p>
<hr>
Navigation
Description
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.
Installation
npm
npm install eo-typewriterjs
yarn
yarn add eo-typewriterjs
cdn
https://cdn.jsdelivr.net/npm/eo-typewriterjs@latest/dist/typewriter.js
Building
- 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.
Usage
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();
