1.0.1 • Published 3 years ago
randomwordanimation v1.0.1
Random Word
Demo Lihat Demo
How to use
// Config for Random Word
RandomWord({
dataText: [], // Words to be shuffled as animation
htmlElem: '', // The placeholder html tag for text
interval: 150, // by default time inteval set to 150
timeout: 8000, // by default timeout set to 8000 ( 8 seconds)
});
here a example to use random word :
// call the random word
import RandomWord from "./script/src/main.js";
RandomWord({
dataText: ['hai', 'hello'],
htmlElem: 'h1',
});