@jddw/typing-animation
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

jddw/typing-animation

A simple React component that display texts using a typing animation Basically, it starts from blank then display letter by letter ; once the word is displayed, it pauses for some seconds, then goes the way back. You can have multiple words to display, in this case they will be displayed one by one (and looping again at the end).

How to use

  • npm install @jddw/typing-animation

Then import in your source files :

import TypingAnimation from '@jddw/typing-animation'

Usage

You just have to pass an array of words to the component :

const words = ['word1', 'word2', 'word3']
<TypingAnimation words={words} />

If you want to display a single word, you still have to use an array :

const word = 'test'
<TypingAnimation words={ [word] } />

Readme

Keywords

none

Package Sidebar

Install

npm i @jddw/typing-animation

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

21.6 kB

Total Files

6

Last publish

Collaborators

  • jdutheil