Mohammad Shehadeh

Sparkles

Heroes

About

Canvas particle field that drifts and twinkles behind any container. Density scales with size, colors resolve from tokens, and it pauses offscreen and under reduced-motion. No dependencies.

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

Code

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

Usage.tsx

import { Sparkles } from "@/components/ui/sparkles";

export default function SparklesDemo() {
  return (
    <div className="relative mx-auto flex h-64 w-full max-w-xl items-center justify-center overflow-hidden rounded-xl border border-white/10 bg-zinc-900">
      <Sparkles color="white" />
      <p className="relative z-10 px-10 text-center font-serif text-2xl italic text-white">
        A quiet field of light.
      </p>
    </div>
  );
}

More by Mohammad Shehadeh

View all
  • Ecommerce Category Page

    Ecommerce Category Page

    99
  • Feature Problem Cards

    Feature Problem Cards

    99
  • Split Login

    Split Login

    93
  • Feature Grid Spotlight Cards

    Feature Grid Spotlight Cards

    90
  • Comparison Section

    Comparison Section

    81
  • Rounded Top Footer

    Rounded Top Footer

    79
  • Comparison Table

    Comparison Table

    77
  • FAQ Two Column

    FAQ Two Column

    76

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

    504
  • Aero Hero-3

    Aero Hero-3

    617
  • Hero Section

    Hero Section

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

    Hero with group of images, text and two buttons

    442