Modern Typing Animation JavaScript Library – tiper-js

Category: Animation , Javascript , Recommended | August 11, 2020
Views Total:329 views
Official Page:Go to website
Last Update:August 11, 2020


Modern Typing Animation JavaScript Library – tiper-js


tiper-js is a modern JavaScript component to print any text with a typing animation just like the commands and output in a terminal.

How to use it:

1. Install and Import the tiper-js as an ES module.

$ npm i tiper-js --save
import Tiper from "tiper-js";

2. Create a container in which you want to print the text.

<div class="tiper-js-container"></div>

3. Initialize the tiper-js library and determine the text you want to print out.

let tiper = new Tiper(
      text: `Any Text Here`

4. Start the typing animation.


5. Type more text.

tiper.line('More Text');

6. Stop the typing animation.


7. Add a blinking cursor to the end of the text while typing.

  animation: blinking 1s infinite steps(2, start); 
@keyframes blinking{
    visibility: hidden;

8. All configuration options with default values.

let tiper = new Tiper(
      text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus tempus sagittis dapibus. Fusce lacinia dui tortor, at porttitor quam luctus ut. Aliquam gravida commodo eros ac dictum. Nam ac odio at sem interdum dictum eget sit amet lorem. Vivamus enim velit, condimentum sed neque non, dignissim viverra nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis sodales, neque eget tincidunt efficitur, nisi orci vestibulum diam, eget fringilla dui dolor sed nisi. Pellentesque feugiat augue in felis interdum, non tempus dui volutpat. Sed pulvinar, massa non placerat scelerisque, nunc tellus posuere felis, a ultricies mi libero id velit. Mauris sed arcu dolor. Mauris varius a metus sit amet pulvinar. Proin rhoncus non quam in vulputate. ",
      hesitation: 0.45, // used as a factor in determining the delay between typing the next character
      wordsPerMinute: 40,
      pauseTimeout: 525,
      pauseOnSpace: false,
      pauseOnEndOfSentence: true,
      showCaret: false,
      caretType: "normal", // 'normal' or 'underscore'
      glitch: false, //  show glitch effect
      onFinishedTyping: function () {
        console.log("Finished typing!");

You Might Be Interested In:

Leave a Reply