@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)
    }

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.18latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.18
1.0.06

Package Sidebar

Install

npm i @mansartesteban/use-typing-animation

Weekly Downloads

14

Version

1.0.1

License

ISC

Unpacked Size

92.7 kB

Total Files

9

Last publish

Collaborators

  • mansartesteban