YieldRay / typing-node

Attach typing effect to any Node

Home Page:https://yieldray.github.io/typing-node/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typing-node

npm install size

Attach typing effect to any Node! (Based on Node.textContent)

import { withNode } from "typing-node";

const stop = withNode(document.querySelector("#target"))
    .wait(500)
    .text("Hello...")
    .wait(1000)
    .text("Hello, world!")
    .wait(500)
    .text("你好,世界!")
    .start(Infinity);

About

Attach typing effect to any Node

https://yieldray.github.io/typing-node/

License:MIT License


Languages

Language:TypeScript 62.9%Language:HTML 37.1%