Web InnoventixFreeCode

Aurora Gradient Hero

MIT · attributed

Animated hero with a shimmering animated-gradient badge and an aurora gradient-text headline over an ambient radial glow. Self-contained CSS animations, dependency-free, respects prefers-reduced-motion.

byMagic UI (magicuidesign)React + Tailwind
heroanimated herogradient textauroramodern herodark mode
Open

Copy prompt gives Claude Code, Cursor or v0 a ready-to-paste prompt that recreates this exact component.

npx shadcn@latest add https://webinnoventix.com/r/src-aurora-gradient-hero.json
src-aurora-gradient-hero.tsx
/* Source: Magic UI (magicuidesign) — https://github.com/magicuidesign/magicui — MIT. Included under its original licence. */
/* Copyright (c) Magic UI. MIT License. Ports registry/magicui/aurora-text.tsx + animated-gradient-text.tsx and their keyframes from styles/globals.css, made self-contained. */

export default function SrcAuroraGradientHero() {
  return (
    <section className="relative isolate flex min-h-screen flex-col items-center justify-center overflow-hidden bg-white px-6 py-24 text-center dark:bg-black">
      <style>{`
        @keyframes agh-gradient { to { background-position: 300% 0; } }
        @keyframes agh-aurora {
          0%   { background-position: 0% 50%;   transform: rotate(-5deg) scale(0.9); }
          25%  { background-position: 50% 100%; transform: rotate(5deg) scale(1.1); }
          50%  { background-position: 100% 50%; transform: rotate(-3deg) scale(0.95); }
          75%  { background-position: 50% 0%;   transform: rotate(3deg) scale(1.05); }
          100% { background-position: 0% 50%;   transform: rotate(-5deg) scale(0.9); }
        }
        @keyframes agh-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
        .agh-anim-gradient { animation: agh-gradient 8s linear infinite; }
        .agh-anim-aurora { animation: agh-aurora 8s ease-in-out infinite alternate; }
        .agh-rise { animation: agh-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
        @media (prefers-reduced-motion: reduce) {
          .agh-anim-gradient, .agh-anim-aurora, .agh-rise { animation: none; }
        }
      `}</style>

      {/* ambient background glow */}
      <div
        aria-hidden="true"
        className="pointer-events-none absolute inset-0 -z-10 [background:radial-gradient(60%_50%_at_50%_0%,rgba(124,40,202,0.18),transparent_70%)] dark:[background:radial-gradient(60%_50%_at_50%_0%,rgba(124,40,202,0.35),transparent_70%)]"
      />

      {/* Animated gradient text badge — from magicui/animated-gradient-text.tsx */}
      <div className="agh-rise mx-auto mb-8 flex w-fit items-center justify-center rounded-full border border-black/10 bg-white/60 px-4 py-1.5 text-sm font-medium shadow-sm backdrop-blur-sm dark:border-white/10 dark:bg-white/5">
        <span aria-hidden="true" className="mr-2">✨</span>
        <span
          className="agh-anim-gradient inline bg-clip-text text-transparent"
          style={{
            backgroundImage: "linear-gradient(to right, #ffaa40, #9c40ff, #ffaa40)",
            backgroundSize: "300% 100%",
          }}
        >
          Introducing FreeCode
        </span>
      </div>

      <h1 className="agh-rise mx-auto max-w-4xl text-4xl font-bold tracking-tight text-gray-900 [animation-delay:0.1s] sm:text-6xl dark:text-white">
        Ship interfaces with an{" "}
        {/* Aurora text — from magicui/aurora-text.tsx */}
        <span className="relative inline-block">
          <span className="sr-only">aurora finish</span>
          <span
            className="agh-anim-aurora relative bg-clip-text text-transparent"
            style={{
              backgroundImage:
                "linear-gradient(135deg, #FF0080, #7928CA, #0070F3, #38bdf8, #FF0080)",
              backgroundSize: "200% auto",
            }}
            aria-hidden="true"
          >
            aurora finish
          </span>
        </span>
      </h1>

      <p className="agh-rise mx-auto mt-6 max-w-xl text-lg text-gray-600 [animation-delay:0.2s] dark:text-gray-300">
        A modern, animated hero built from genuinely open-source effects. Gradient motion,
        dark-mode ready, and dependency-free.
      </p>

      <div className="agh-rise mt-10 flex flex-col items-center justify-center gap-3 [animation-delay:0.3s] sm:flex-row">
        <a
          href="#"
          className="inline-flex items-center justify-center rounded-full bg-gray-900 px-6 py-3 text-sm font-semibold text-white shadow-lg transition-transform hover:-translate-y-0.5 dark:bg-white dark:text-black"
        >
          Get started
        </a>
        <a
          href="#"
          className="inline-flex items-center justify-center rounded-full border border-gray-200 bg-white/70 px-6 py-3 text-sm font-semibold text-gray-900 backdrop-blur-sm transition-colors hover:bg-gray-50 dark:border-white/15 dark:bg-white/5 dark:text-white dark:hover:bg-white/10"
        >
          View components
        </a>
      </div>
    </section>
  );
}

Dependencies

None — React + Tailwind only.

Licence

Magic UI (magicuidesign) (original) · Licensed under MIT.

Built by Web Innoventix

Need a custom interface, a full website, or SEO that gets you cited by AI? We design, build and rank it end to end.

Get a free quote

Similar components

Browse all →
Spotlight Hero

Spotlight Hero

Original

A centred hero with a soft radial spotlight, badge and dual call-to-action.

Split Hero

Split Hero

Original

A two-column hero pairing a headline and CTAs with a product mock and social proof.

Gradient Spotlight Hero

Gradient Spotlight Hero

Original

A minimal centred hero with a soft gradient-mesh backdrop, announcement pill and dual call-to-action buttons.

App Preview Hero

App Preview Hero

Original

A centred hero that pairs headline copy with a realistic product dashboard mock built entirely from markup, complete with browser chrome and a floating notification card.

Waitlist Capture Hero

Waitlist Capture Hero

Original

A dark, focused hero with an inline email capture form and avatar social proof, ready for pre-launch waitlists.

Image Backdrop Hero

Image Backdrop Hero

Original

A cinematic full-bleed hero with a layered image-style backdrop, overlaid left-aligned copy and a trusted-by logos strip.

Gradient Mesh Hero with Staggered Text Reveal

Gradient Mesh Hero with Staggered Text Reveal

Original

A full-screen hero pairing a drifting animated gradient-mesh backdrop with a word-by-word staggered blur-in headline and a logo marquee under the fold.

Typewriter Rotating Words Hero

Typewriter Rotating Words Hero

Original

A hero whose headline cycles through rotating words with a live typewriter caret over an animated grid backdrop, degrading to a gentle word swap when reduced motion is on.

Floating UI Cards Hero with Mouse Parallax

Floating UI Cards Hero with Mouse Parallax

Original

A hero with glassy floating UI cards that drift continuously and shift on mouse-parallax depth around a staggered centre headline.

Aurora Hero with Shimmer CTA and Logo Marquee

Aurora Hero with Shimmer CTA and Logo Marquee

Original

A dark hero with animated aurora light beams, a shimmering sweep across the primary CTA, and dual-direction logo marquees beneath the fold.

Gradient Conversion Hero

Gradient Conversion Hero

MIT

Centered, full-screen marketing hero with a colour-accent headline word, supporting copy, and dual primary/secondary CTA buttons. Dark-mode ready and dependency-free.

Split Showcase Hero

Split Showcase Hero

MIT

Two-column hero on a dark background — headline, paragraph, and two buttons beside a gradient media panel. Responsive column stack on mobile.