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
  • Feature Problem Cards

    Feature Problem Cards

    84
  • Feature Grid Spotlight Cards

    Feature Grid Spotlight Cards

    69
  • Dithered Shader CTA

    Dithered Shader CTA

    63
  • Split Login

    Split Login

    60
  • FAQ Two Column

    FAQ Two Column

    59
  • Ecommerce Category Page

    Ecommerce Category Page

    58
  • Comparison Table

    Comparison Table

    58
  • Comparison Section

    Comparison Section

    56

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.4K
  • Hero

    Hero

    1.2K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    924
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Hero Section 6

    Hero Section 6

    880
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    284
  • Hero Golden Spiral

    Hero Golden Spiral

    100
  • Home Section

    Home Section

    65