Components
Loading preview...
The component creates floating particles that move upward with physics simulation, automatic camera rotation, and dual-color particle systems.
npx shadcn@latest add https://21st.dev/r/designali-in/floating-particlesimport { FloatingParticles } from "@/components/ui/floating-particles";
export default function DemoOne() {
return (
<div className="elative flex h-screen w-full flex-col items-center justify-center overflow-hidden ">
<FloatingParticles
particleCount={8000}
particleColor1="#ffff50"
particleColor2="#99ffcc"
cameraDistance={1000}
rotationSpeed={0.1}
particleSize={10}
antigravityForce={30}
activationRate={50}
/>
<span className="pointer-events-none absolute z-10 text-center text-7xl leading-none font-semibold tracking-tighter whitespace-pre-wrap">
Floating Particles
</span>
</div>
)
}