npm.io
1.0.1 • Published 5 years ago

randomwordanimation

Licence
ISC
Version
1.0.1
Deps
0
Size
5 kB
Vulns
0
Weekly
0

Random Word

Netlify Status

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.

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',
});

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

Keywords