Dhileep Kumar GM

ParticleBackground

Backgrounds 10

About

A React component that renders a full-screen, interactive particle system using p5.js.. Particles gently follow the mouse pointer, supports light/dark themes, resizes responsively, and respects the user’s reduced-motion setting.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds ParticleBackground to your project and fits it to your theme.

Code

How ParticleBackground is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import ParticleBackground from "@/components/ui/particle-background";

const settings = {
  total: 500,
  sizeThreshold: 5,
  decel: 1.05,
  drag: 0.01,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen">
      <ParticleBackground {...s} />
    </div>
  );
}

More by Dhileep Kumar GM

View all
  • Aether Flow Hero

    Aether Flow Hero

    1.9K
  • Woven Light Hero

    Woven Light Hero

    1.5K
  • AnomalousMatterHero

    AnomalousMatterHero

    1.5K
  • PulseFit hero

    PulseFit hero

    922
  • Mountain Scene

    Mountain Scene

    859
  • HolographicCard

    HolographicCard

    820
  • 3D Animation

    3D Animation

    766
  • Cybernetic Bento Grid

    Cybernetic Bento Grid

    556

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    811
  • Gradient Backgrounds

    Gradient Backgrounds

    25
  • Jade Sky

    Jade Sky

    85
  • LivingOrigami bg

    LivingOrigami bg

    135
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    536
  • Background snippets

    Background snippets

    14
  • Light theme Tailwind CSS Background Snippet

    Light theme Tailwind CSS Background Snippet

    221
  • Gradient Blur Bg

    Gradient Blur Bg

    18