Black Friday: 30% off Pro

Get 30% off

Particle Scatter

Preview

Customize

Wave speed1.25
Particles3000
Scatter min18px
Scatter max44px
Text size48px

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.

Usage

import { ParticleScatter } from "@/components/uibrik/particle-scatter/particle-scatter";​const words = ["Scatter the words", "Gather them again", "Into something new"];​<ParticleScatter  play={0}  words={words}  waveSpeed={1.25}  particleCount={3000}  scatterMin={18}  scatterMax={44}/>

Where to use Particle Scatter

  • Clickable hero headlines

    Each press breaking the phrase into particles makes the hero interactive.

    Pairs with Scatter Text

  • Portfolio intros

    Particles regrouping into the next phrase work for introducing several roles.

  • Tech brands

    A particle effect suits AI, data and science products.

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.