components / scramble
scramble.
wrapper that scrambles every word inside it on hover.
hover to scramble
installation
bunx @justin06lee/chrome@latest add scrambleprops
| name | type | default | description |
|---|---|---|---|
| children * | ReactNode | - | |
| as | ElementType | 'span' | |
| speed | number | 30 | ms between scramble frames |
| step | number | 1/3 | chars to lock per frame |
| background | string | - | CSS background applied to the root element. transparent by default. |