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

    2K
  • Woven Light Hero

    Woven Light Hero

    1.7K
  • AnomalousMatterHero

    AnomalousMatterHero

    1.5K
  • PulseFit hero

    PulseFit hero

    1K
  • Mountain Scene

    Mountain Scene

    889
  • HolographicCard

    HolographicCard

    842
  • 3D Animation

    3D Animation

    830
  • Premium Auth

    Premium Auth

    613

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    975
  • Dark Gradient Background

    Dark Gradient Background

    169
  • Background snippets

    Background snippets

    25
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    643
  • Background Components

    Background Components

    254
  • Honey Ember Background

    Honey Ember Background

    104
  • Gradient Backgrounds

    Gradient Backgrounds

    28
  • Light theme Tailwind CSS Background Snippet

    Light theme Tailwind CSS Background Snippet

    263