uibrik

Particle Scatter

Preview

Customize

Wave speed1.25
Particles3000
Scatter min18px
Scatter max44px
Text size48px

Usage

import { ParticleScatter } from "@/components/uibrik/particle-scatter/particle-scatter";

<ParticleScatter play={play} />

Installation

npx shadcn@latest add https://uibrik.com/r/particle-scatter.json
Adds the files to components/uibrik/particle-scatter. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/particle-scatter. Builds on Scatter Text.

Props

ParticleScatter
words
Type string[]
["Scatter the words","Gather them again","Into something new"]
Cycled through, one per play.
waveSpeed
Type number
1.25
Speed of the scatter wave.
particleCount
Type number
3000
Particles sampled across the text.
scatterMin
Type number
18
Closest a particle scatters.
scatterMax
Type number
44
Farthest a particle scatters.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.