2.3.2 • Published 7 months ago

typewriting-animation v2.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

typewriting-animation

A customizable and lightweight typewriter animation JavaScript library that allows you to add your own custom characters, control the speed of the animation, control the delay between each character, and control the looping of the animation to decide the type of cursor to use.

🚀 Features

Customizable typewriter animation with the following features:

  • Add your own custom characters
  • Control the speed of the animation
  • Control the delay between each character
  • Control the looping of the animation
  • Decide the type of cursor to use

⚙️ Build using

  • TypeScript
  • npm
  • Gulp
  • Rollup

📦 Getting Started

NPM

Installation

npm i typewriting-animation

🔨 Usage

React

import React from 'react';
import { useTypewriterEffect } from 'typewriting-animation';

function App() {
  const {
    typedString,
    selectedString,
  } = useTypewriterEffect(
    [
      "add your own custom characters",
      "control the speed of the animation",
      "control the delay between each character",
      "control the looping of the animation",
      "decide the type of cursor to use",
    ],
    // Otpional for customizing the animation
    {
      speed: 30, // Set your desired animation speed in milliseconds
      delay: 2000, // Set the delay between sentences in milliseconds
      loop: false, // Set to true if you want the animation to loop
      cursor: '_', // Set your desired cursor character
    }
  );

  return (
    <div>
      <div className="blinking-cursor" aria-label={selectedString}>
        typewriting-animation allows you to {typedString}
      </div>
    </div>
  );
}

export default App;

🐛 Bug Reporting

Feel free to open an issue on GitHub if you find any bug.

⭐ Feature Request

  • Feel free to Open an issue on GitHub to request any additional features you might need for your use case.

📋 Release Notes

Check here for release notes.

📜 License

This software is open-source, licensed under the MIT License.

forthebadge

2.2.9

7 months ago

2.2.8

7 months ago

2.3.0

7 months ago

2.3.2

7 months ago

2.3.1

7 months ago

2.2.7

7 months ago

2.2.5

2 years ago

2.2.4

2 years ago

2.2.6

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago