Demo Lihat Demo
Random Word is a package to create random word animation and generate randomized words based on word data provided by the user.
// Install from NPM
npm i randomwordanimation
// 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',
});
If you want to change or add features of this package please make a pull req on Github so I'll be happy to check your code
.All of my contact person is on my github account , don't forget to check it