scrollxui

Particles

Backgrounds 99

About

A 3D interactive particle field rendered with three.js that reacts to mouse movement and supports customizable color, count, and size.

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

Code

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

Usage.tsx

import { Particles } from "@/components/ui/particles";

const settings = {
  particleCount: 25000,
  particleSize: 5,
  animate: false,
};

export default function ParticlesDemo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen">
      <Particles
        color="#ffffff"
        particleCount={s.particleCount}
        particleSize={s.particleSize}
        animate={s.animate}
        className="z-0"
      />
    </div>
  );
}

Dependencies

More by scrollxui

View all
  • Contact with Globe

    Contact with Globe

    378
  • Features With Panel

    Features With Panel

    352
  • Hero Section with Cards

    Hero Section with Cards

    168
  • FAQ Accordion

    FAQ Accordion

    164
  • Logo Cloud Marquee

    Logo Cloud Marquee

    157
  • Hero With Pixel Background

    Hero With Pixel Background

    88
  • Testimonials Marquee

    Testimonials Marquee

    84
  • Testimonials Vertical Marquee

    Testimonials Vertical Marquee

    74

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    868
  • Background snippets

    Background snippets

    65
  • Light theme Tailwind CSS Background Snippet

    Light theme Tailwind CSS Background Snippet

    236
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    568
  • Gradient Backgrounds

    Gradient Backgrounds

    27
  • Background Components

    Background Components

    20
  • Jade Sky

    Jade Sky

    96
  • LivingOrigami bg

    LivingOrigami bg

    150