Swarm Button
NewPremiumText rendered as particle swarm that scatters on hover and reforms using boid flocking behavior.
buttonsparticlesswarmboidflockingtext
Installation
Terminalbash
npx motioncraft add swarm-buttonUsage
swarm-button.tsxtsx
import { SwarmButton } from "@/components/buttons/premium-buttons";
<SwarmButton particleColor="#a855f7">
HOVER
</SwarmButton>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children* | string | — | Text to render as particles |
| particleColor | string | #ffffff | Particle color |
| className | string | — | Additional CSS classes |
| onClick | () => void | — | Click handler |
Related Components
Shader Distortion Button
NewWebGL-powered button with GPU-computed water-warp distortion on hover. Real-time ripple displacement mapping.
Ink Bleed Button
NewClick triggers organic watercolor-like ink bleeding from the click point. Canvas-based fluid simulation with sub-drop spawning.
Cloth Button
NewButton surface simulates fabric using verlet integration physics. Cursor pushes dents into the cloth mesh.
Portal Button
NewClick tears open a spiraling vortex/wormhole from the click point. Organic distorted rings with center glow.