@mansartesteban/use-typing-animation

1.0.1 • Public • Published

use-typing-animation

Allows you to create a typing animation on any HTML element by providing a list of sentences to display.

Installation

npm i @mansartesteban/use-typing-animation

Usage

Be careful to verify if the element you pass as argument of animate method is defined !

    import useTypingAnimation from "@mansartesteban/use-typing-animation"

    let container = document.getElementById("element-to-animate")

    const list = [
        "Hello world !",
        "Goodbye alone",
    ]

    if (container) {
        useTypingAnimation(list).animate(container)
    }

Package Sidebar

Install

npm i @mansartesteban/use-typing-animation

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

92.7 kB

Total Files

9

Last publish

Collaborators

  • mansartesteban