uibrik

Crumble to Sand

Preview

Customize

Gravity1600
Rise0.60s
Arc10px
Text size48px

Usage

import { CrumbleToSand } from "@/components/uibrik/crumble-to-sand/crumble-to-sand";

<CrumbleToSand play={play} />

Installation

npx shadcn@latest add https://uibrik.com/r/crumble-to-sand.json
Adds the files to components/uibrik/crumble-to-sand. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/crumble-to-sand.

Props

CrumbleToSand
words
Type string[]
["Sand pile","Fall apart","Build again"]
Cycled through, one per play.
gravity
Type number
1600
How fast grains fall, px/s².
riseDuration
Type number
0.6
Time for grains to fly into the next word.
arc
Type number
10
Lift on the way to the next word.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.