npm i shuffle-char -S
or yarn add shuffle-char
import Shuf from 'shuffle-char'
<h1>
<Shuf on={running} charset='a-zA-Z_' escape='()' idle={80}>Hack(FDU)</Shu>
</h1>
<h2>
<Shuf on={running} charset='0-9' idle={80}>150</Shu>+ teams,
<Shuf on={running} charset='0-9' idle={80}>500</Shu>+ participants
</h2>
Props supported:
-
on
: boolean, Iftrue
the animation will keep running, else it will display the default value. -
charset
: string,'a-z'
/'A-Z'
/'0-9'
+ any characters. e.g.'a-zA-Z_'
includes all alphabets and underscore. -
escape
: string, Characters excluded from thecharset
above. e.g.charset='a-z'
andescape='x'
includes all lowercase letters excludex
. -
idle
: number, The animation interval in ms.
The MIT license.