An open API service indexing awesome lists of open source software.

https://github.com/harshal0902/typewriting-animation

⌨ A lightweight customizable typewriter animation JavaScript library.
https://github.com/harshal0902/typewriting-animation

animation hacktoberfest hacktoberfest-accepted javascript react typescript typewriter-animation

Last synced: about 2 months ago
JSON representation

⌨ A lightweight customizable typewriter animation JavaScript library.

Awesome Lists containing this project

README

        


npm version

# 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.



npm version


npm downloads


size

license

- [Features](#features)
- [Build using](#build-using)
- [Getting Started](#getting-started)
- [NPM](#npm)
- [Usage](#usage)
- [React](#usage-react)
- [Bug Reporting](#bug-reporting)
- [Feature Request](#feature-request)
- [Release Notes](#release-notes)
- [License](#license)

## 🚀 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

```bash
npm i typewriting-animation
```

## 🔨 Usage

### React

```javascript
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 (



typewriting-animation allows you to {typedString}


);
}

export default App;

```

## 🐛 Bug Reporting

Feel free to [open an issue](https://github.com/Harshal0902/typewriting-animation/issues) on GitHub if you find any bug.

## ⭐ Feature Request

- Feel free to [Open an issue](https://github.com/Harshal0902/typewriting-animation/issues) on GitHub to request any additional features you might need for your use case.

## 📋 Release Notes

Check [here](https://github.com/Harshal0902/typewriting-animation/releases) for release notes.

## 📜 License

This software is open-source, licensed under the [MIT License](https://github.com/Harshal0902/typewriting-animation/blob/main/LICENSE).

[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://github.com/Harshal0902)