1.0.1 • Published 3 years ago

randomwordanimation v1.0.1

Weekly downloads
5
License
ISC
Repository
-
Last release
3 years ago

Random Word

Netlify Status

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