Harsh Jadhav

Particle Galaxy

Component 48

About

An interactive 3D spiral galaxy of shader-rendered particles you can drag to rotate, scroll to zoom, and customize with color, glow, and density controls.

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

Code

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

Usage.tsx

"use client";

import { ParticleGalaxy } from "@/components/ui/particle-galaxy";

const settings = {
  particleCount: 10000,
  particleSize: 0.02,
  rotationSpeed: 0.001,
  spiralArms: 3,
  spread: 2.5,
  density: 0.7,
  glow: 60,
  autoRotate: true,
  pulsate: true,
};

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

Dependencies

More by Harsh Jadhav

View all
  • Scroll Choreography

    Scroll Choreography

    1K
  • Collection Surfer

    Collection Surfer

    872
  • Cursor Driven Particles Typography

    Cursor Driven Particles Typography

    782
  • Liquid Glass Carousel

    Liquid Glass Carousel

    618
  • Wheel Carousel

    Wheel Carousel

    577
  • Animated Gradient

    Animated Gradient

    411
  • Circuit Board

    Circuit Board

    180
  • Magnetic Dock

    Magnetic Dock

    118