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.7K
  • Modern Hero

    Modern Hero

    1.5K
  • Text Parallax Content (scroll)

    Text Parallax Content (scroll)

    1.3K
  • Modern Animated Hero Section

    Modern Animated Hero Section

    1.2K
  • About Us section

    About Us section

    1.2K
  • Animated Hero Section

    Animated Hero Section

    717
  • Cuisine Selector Chips

    Cuisine Selector Chips

    611
  • Bounce card features

    Bounce card features

    605

More in Heroes

View all
  • Agency Hero Section

    Agency Hero Section

    1.1K
  • SaaS Template

    SaaS Template

    2.8K
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    32
  • Cabin To Sky Film Hero

    Cabin To Sky Film Hero

  • Real Estate 3D Hero

    Real Estate 3D Hero

    83
  • Hero

    Hero

    1.4K
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • Chroma Sense Hero

    Chroma Sense Hero

    21