Black Friday: 30% off Pro

Get 30% off

Crumble to Sand

Pro

Preview

Sand pile

Customize

Gravity1600
Rise0.60s
Arc10px
Text size48px

Installation

Pro

Crumble to Sand is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/crumble-to-sand

Usage

import { CrumbleToSand } from "@/components/uibrik/crumble-to-sand/crumble-to-sand";​<CrumbleToSand  play={0}  words={["Sand pile", "Fall apart", "Build again"]}  gravity={1600}  riseDuration={0.6}  arc={10}/>

Where to use Crumble to Sand

  • Rotating headlines

    The phrase crumbles into grains that rebuild the next, so a hero can cycle messages with a strong visual beat.

  • Creative portfolios

    A sand transition between words suits designers and studios who want a hero with texture.

  • Story-driven sections

    Turning one idea into the next fits narrative landing pages about change or transformation.

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.