typify.js - Auto Typing Animation Library

typify.js is a powerful and lightweight auto typing animation library that makes it easy to create dynamic text animations on your website. Enhance your user experience with typewriter-like effects.

Installation

Using CDN

To use typify.js directly in the browser, include the following script tag in the <head> or <body> section of your HTML file:

<script src="https://unpkg.com/typify.js@1.1.9/dist/typify.min.js"></script>

Download

To setup typify.js locally: download

Usage

To create a typewriter effect for an HTML element, call the Typify function with the required CSS selector and configuration options.

<h1 id="typify-text"></h1>
const typingText = Typify('#typify-text', {
  text: ['Hello!', 'Welcome to Typify Library!', 'Enjoy the typing effect!'],
  delay: 100,
  loop: true,
  cursor: true,
  stringDelay: 1000 
});

Options

The Typify function accepts the following options as the second argument:

Examples

Using in browser

The following example demonstrates how to use typify.js in browser.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Typify Example</title>
</head>
<body>
  <h1 id="typify-text"></h1>
  <script src="./typify.min.js"></script>
  <script>
    const typingText = Typify('#typify-text', {
      text: ['Hello!', 'Welcome to Typify Library!', 'Enjoy the typing effect!'],
      delay: 100,
      loop: true,
      cursor: true,
      stringDelay: 1000
    });
  </script>
</body>
</html>

Licence

MIT

Issues

Kindly report the issues here.

Support

Buy Me A Coffee