Sonu kumar

Sparkles moving hero section

Heroes

About

This React component, SparklesCore, renders customizable particle animations using the tsParticles library. It offers various configuration options for particle size, color, speed, density, and background. The component uses motion for animations and handles initialization efficiently.

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

Code

How Sparkles moving hero section is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { SparklesCore } from "@/components/ui/sparkles-moving-hero-section";

export default function DemoOne() {
  return (
    <div className="h-screen relative w-full bg-background flex flex-col items-center justify-center overflow-hidden rounded-md">
      <div className="w-full absolute inset-0 h-screen">
        <SparklesCore
          id="tsparticlesfullpage"
          background="transparent"
          minSize={0.6}
          maxSize={1.4}
          particleDensity={100}
          className="w-full h-full"
          particleColor="#FFFFFF"
        />
      </div>
      <h1 className="md:text-7xl text-3xl lg:text-6xl font-bold text-center text-foregrund relative z-20">
        Build great products like 21st.dev
      </h1>
    </div>
  );
}

Dependencies

More by Sonu kumar

View all
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Modern Hero

    Modern Hero

    1.5K
  • Text Parallax Content (scroll)

    Text Parallax Content (scroll)

    1.2K
  • Modern Animated Hero Section

    Modern Animated Hero Section

    1.2K
  • About Us section

    About Us section

    1.2K
  • Animated Hero Section

    Animated Hero Section

    709
  • Cuisine Selector Chips

    Cuisine Selector Chips

    604
  • Bounce card features

    Bounce card features

    598

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.7K
  • Hero

    Hero

    1.3K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1.1K
  • Editorial Collage Hero

    Editorial Collage Hero

    507
  • Hero Section

    Hero Section

    445
  • Aero Hero-3

    Aero Hero-3

    618
  • Hero with group of images, text and two buttons

    Hero with group of images, text and two buttons

    442