Particle Morph

NewPremium

Particle system that smoothly morphs between geometric shapes (sphere, cube, torus, spiral). Direction-aware coloring.

three3dparticlesmorphwebgldirection-aware
Dependencies: @react-three/fiber, three

Installation

Terminalbash
npx motioncraft add particle-morph

Usage

particle-morph.tsxtsx
import { ParticleMorph } from "@/components/three/particle-morph";

<ParticleMorph particleCount={8000} speed={1.5} className="h-96" />

Props

PropTypeDefaultDescription
shapesstring[]["sphere","cube","torus","spiral"]Shapes to morph between
particleCountnumber5000Number of particles
speednumber1Morph speed
sizenumber0.03Particle size
classNamestringAdditional CSS classes

Related Components