Animations
FloatingParticles
Canvas-based floating dot particles animation.
Quick Preview
Floating Particles
Installation
# No extra dependencies โ uses HTML Canvas
// Copy component fromsrc/components/animations/FloatingParticles.tsx
Usage
import FloatingParticles from '@/components/animations/FloatingParticles'<div className="relative h-64 bg-black rounded-xl overflow-hidden"><FloatingParticles className="absolute inset-0" /><div className="relative z-10">Your content here</div></div>
Examples
Dense & Fast
Brand Colors
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
count | number | 40 | Number of particles |
colors | string[] | - | Particle colors |
speed | number | 0.4 | Movement speed |
minRadius | number | 2 | Min particle radius |
maxRadius | number | 5 | Max particle radius |
className | string | - | Additional CSS classes |