1.0.0 • Published 8 years ago
shuffle-colorful-chars v1.0.0
What is this?
This will applying colorful animation to your text.
Usage
$ npm install --save shuffle-colorful-chars
<span id="sample">Hello world</span>
import ShuffleColorfulChars from "shuffle-color-chars";
document.addEventListener("DOMContentLoaded", () => {
const sampleNode = new ShuffleColorfulChars(document.getElementById("sample"), {
lang: "ja", // optional
bold: true // optional
});
sampleNode.run(() => {
console.log("Finish animation callback"); // optional
});
});
1.0.0
8 years ago