# Marketing Announcement Banner: With Countdown

A banner with a live countdown timer beside the message. Build urgency for a sale, webinar, or deadline and prompt visitors to act before time runs out.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/with-countdown
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Announcement Banners](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/with-countdown.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-announcement-banners-with-countdown
```

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-announcement-banners-with-countdown.json"`.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/marketing/announcement-banners/with-countdown`

## About this block

With Countdown is a slim full-width banner that sits at the top of a page.
A short label on the left reads "Flash Sale Ends in:" followed by a live
monospaced clock ticking down from 24 hours in HH:MM:SS format. A small
action button on the right gives visitors somewhere to go the moment they
read the message.

The label text, the initial countdown duration, and the button copy are all
independent. You can swap the message to match any deadline, adjust the
starting hours, and rename the button without touching the timer logic or
the layout.

## When to use

Reach for this block when a hard deadline is the core message and you need
the page to communicate that urgency at first glance. It suits a logistics
or delivery platform announcing a same-day shipping cutoff, a flash
discount expiring at midnight, or a webinar opening in a few hours. The
timer does the persuasion work that a static banner cannot, and the paired
button means visitors can act without scrolling.

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

**Before**

- A [hero section](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections) to set the offer
  context directly below the banner

**After**

- A [CTA section](https://www.shadcn-ui-blocks.com/blocks/marketing/cta-sections) to reinforce the offer
  for readers who scrolled past the banner
- The [With Action](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/with-action)
  sibling if you need a persistent prompt once the countdown expires

## What you can display

The obvious fit is a time-boxed commercial event with a clear cutoff. A
few other ways to use the frame:

- **Shipping deadlines.** Show the hours remaining before same-day or
  next-day dispatch closes so shoppers know exactly when they need to
  order by.
- **Webinar or event registration.** Count down to a live session and
  pair the button with a registration link so the sense of urgency
  converts directly.
- **Limited inventory window.** Frame a stock hold or reservation period
  with the clock so buyers understand the offer is genuinely finite.

> Tip: set the countdown target on the server and seed the initial state
> from that value so the timer stays consistent across page refreshes and
> different visitors.

## More in Marketing Announcement Banners

- [Floating](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/floating)
- [Simple Centered](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/simple-centered)
- [With Action](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/with-action)
- [With Image](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/with-image)
- [With Social Proof](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/with-social-proof)
