# Marketing Hero Section: Animated Gradient

A hero set on a slowly shifting gradient backdrop with a centered headline and CTA. A colorful, lively opener for SaaS and creative product pages.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/animated-gradient
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Hero Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/animated-gradient.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-hero-sections-animated-gradient
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/marketing-hero-sections-animated-gradient.json"`.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: avatar, button, input, label
- Installs to: `@/components/blocks/marketing/hero-sections/animated-gradient`

## About this block

Animated Gradient is a two-column hero. The left column holds a large
headline, a short paragraph, an inline email input with a subscribe
button, a row of small technology badge pills, and a social proof strip
showing three stacked avatars beside a joined-by count. The right column
displays a faux code editor card: a title bar with traffic-light dots and
a filename tab, then a scrollable code block beneath it. Four large blurred
color orbs (purple, yellow, pink, and blue) float in the background and
slowly drift in overlapping loops to produce the shifting gradient effect.

The left and right columns are fully independent. You can rewrite the
headline and paragraph, change the badge labels to reflect your own stack,
update the email label and button text, and swap the joined-by count for
any social proof figure. The code panel is a static display, so you can
replace the snippet with any short code example that speaks to your
audience.

## When to use

Reach for this block when your product targets a technical audience and
you want to capture early interest in one motion. For a fintech or banking
product, it works particularly well as an onboarding entry point: the email
input converts curious visitors into a waitlist while the code panel signals
that the API or SDK is real and ready. It fits a launch page, an early
access campaign, or a developer-facing product site where a static
background would feel flat.

A natural flow around it on a Marketing (Legacy) page:

**Before**

- [Announcement Banners](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners) to prime
  visitors with a launch or beta notice before the hero loads
- A plain top navigation bar with your logo and sign-in link

**After**

- [Feature Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/feature-sections) to follow up with
  the capabilities your headline teased
- [Stats](https://www.shadcn-ui-blocks.com/blocks/marketing/stats) to reinforce the joined-by count with
  broader usage numbers

## What you can customize

The block has three distinct zones you can adapt without touching the others:

- **Email capture form.** Swap the label, placeholder, and button text to
  match your campaign, whether that is a waitlist, a newsletter, or a free
  trial invite.
- **Technology badge strip.** Replace the default labels with the languages,
  frameworks, or integrations that matter to your buyers so the stack feels
  immediately familiar.
- **Code panel content.** Paste any short, readable snippet that shows your
  API, SDK, or config in action to make the right column speak directly to
  the visitor you are trying to convert.

> Tip: keep the code snippet short enough to display without horizontal
> scrolling; four to eight lines is the sweet spot for quick comprehension.

## More in Marketing Hero Sections

- [3D Isometric Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/3d-isometric-hero)
- [Animated Features Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/animated-features-hero)
- [Animated Text Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/animated-text-hero)
- [Centred With Image](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/centred-with-image)
- [Chat Preview Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/chat-preview-hero)
- [Countdown Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/countdown-hero)
- [Gradient Background](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/gradient-background)
- [Gradient Mesh Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/gradient-mesh-hero)
- [Image Carousel Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/image-carousel-hero)
- [Image With Reviews](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/image-with-reviews)
- [Interactive Metrics](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/interactive-metrics)
- [Mobile App Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/mobile-app-hero)
- [Multi-Step CTA Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/multi-step-cta-hero)
- [Particles Background Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/particles-background-hero)
- [Product Carousel Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/product-carousel-hero)
- [Progress Tracker Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/progress-tracker-hero)
- [Search Bar](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/search-bar)
- [Simple Centred](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/simple-centred)
- [Social Proof Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/social-proof-hero)
- [Split Content Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/split-content-hero)
- [Split Image Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/split-image-hero)
- [Split With Video](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/split-with-video)
- [Testimonial Carousel](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/testimonial-carousel)
- [Trust Indicators](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/trust-indicators)
- [Video Background Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/video-background-hero)
- [With 3D Mockup](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-3d-mockup)
- [With API Preview](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-api-preview)
- [With App Showcase](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-app-showcase)
- [With Bento Grid](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-bento-grid)
- [With Code Preview](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-code-preview)
- [With Content Tabs](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-content-tabs)
- [With Dashboard](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-dashboard)
- [With Email Input](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-email-input)
- [With Feature Cards](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-feature-cards)
- [With Feature Timeline](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-feature-timeline)
- [With Integration Showcase](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-integration-showcase)
- [With Product Screenshots](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-product-screenshots)
- [With Team Grid](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-team-grid)
- [With Terminal](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-terminal)
