@mansartesteban/use-typing-animation
v1.0.1
Published
Vanilla lib to simulate typing animation for a list of defined words
Downloads
139
Maintainers
Readme
use-typing-animation
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)
}