randomwordanimation

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i randomwordanimation

Weekly Downloads

11

Version

1.0.1

License

ISC

Unpacked Size

5.52 kB

Total Files

5

Last publish

Collaborators

  • dharma_situmorang