# Marketing Hero Section: Animated Text Hero

A hero where the headline word swaps through phrases with smooth motion. Highlights several value points in one line at the top of a landing page.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/animated-text-hero
- 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-text-hero.png

## Install

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

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-text-hero.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/marketing/hero-sections/animated-text-hero`

## About this block

Animated Text Hero is a centered, full-width hero that opens with a large
headline, a body paragraph, two call-to-action buttons, and a row of four
social-proof stats. The headline contains a typewriter phrase that types
out one value claim, pauses, deletes it, and cycles to the next. A blinking
cursor sits at the end of the phrase so the animation is clearly intentional.
Below the headline, the two CTAs sit side by side on wider screens and stack
on mobile. The stats grid sits below the buttons, showing a number and a
short label in each cell.

Every piece of copy is independent. The headline prefix, the cycling phrases,
the paragraph text, the button labels, and each stat number and label can all
be edited without touching the animation logic. You can add or remove phrases
from the rotation and adjust the stat count from four to two if you only have
two numbers worth showing.

## When to use

This layout suits a healthcare scheduling product that needs to highlight
several distinct value points in a single line without crowding the page. The
typewriter loop is a natural fit when your product serves more than one buyer
persona and you want each group to see their own reason to keep reading, all
within the same fold. The stat row adds light credibility without requiring a
separate social-proof section below.

Compared to a static centered hero like
[Simple Centred](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/simple-centred), this block
does more work on attention without adding visual noise. If you need the page
to also show a product screenshot or UI preview, reach for
[With Dashboard](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-dashboard) or
[With Product Screenshots](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-product-screenshots)
instead.

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

**Before**

- An [Announcement Banner](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners) to surface
  a launch or limited offer above the fold before the hero loads.

**After**

- A [Feature Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/feature-sections) block to expand on
  the phrases the typewriter teased in the headline.
- A [Testimonials](https://www.shadcn-ui-blocks.com/blocks/marketing/testimonials) block to back up the stat
  row with real customer voices.

## What you can customize

The block has three clearly separable zones you can tune independently:

- **Typewriter phrases.** Replace the four default phrases with your own
  value claims, clinical outcomes, or target audience callouts. Each phrase
  is just a string in an array so you can add more or cut to two.
- **Stat cells.** Swap the numbers and labels to reflect your actual metrics,
  such as patients seen, appointment types, or clinic partners. You can drop
  cells or reorder them freely.
- **Button actions.** The primary and outline buttons each take an href, so
  you can point them at a signup flow, a booking page, or a demo request
  form without touching the layout.

> Tip: keep each phrase short enough to fit on one line at the largest
> heading size so the blinking cursor stays visible and the layout does
> not reflow mid-animation.

## 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 Gradient](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/animated-gradient)
- [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)
