# Marketing Announcement Banner: Floating

A banner that floats above page content with rounded corners and a dismiss button. Announce a promotion or update without pushing the layout down.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/floating
- 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/floating.png

## Install

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

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

## Depends on

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

## About this block

Floating Banner sits fixed at the bottom of the viewport, centered
horizontally with rounded corners so it hovers above the page without
disturbing the layout. The banner holds a short message in two parts: a
bold label and a follow-on sentence, separated by a small dot. To the
right of the message a secondary button with an arrow icon invites the
reader to act.

The message, label, and button copy are the only pieces that need to
change for a new campaign. The pill shape and fixed position are
self-contained, so you can drop this banner onto any page without
adjusting the surrounding layout.

## When to use

Reach for this block when you want to surface a time-limited offer or
announcement without interrupting the page flow. It suits a creative
agency or studio homepage where the primary hero and portfolio sections
should breathe freely but you still want a persistent nudge toward a
promotion or new service. Because it floats rather than pushes content
down, it is less disruptive than a top bar and more persistent than an
inline callout.

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

**Before**

- [Hero Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections) to establish the
  primary message before the banner reinforces it
- [Feature Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/feature-sections) where the
  banner can persist while the reader scans capabilities

**After**

- [CTA Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/cta-sections) as a fallback for
  readers who dismiss the banner and scroll to the bottom
- [Subscribe](https://www.shadcn-ui-blocks.com/blocks/marketing/subscribe) to capture interest from
  visitors who want to stay informed rather than act immediately

## What you can display

The banner is a single persistent strip, so any short, high-priority
message fits the frame:

- **A limited-time discount.** State the offer in the bold label and
  spell out the saving in the follow-on text so the value is
  immediately clear.
- **A new service or product launch.** Name the release in the label
  and use the button to send visitors to the dedicated landing page.
- **An upcoming event or deadline.** Call out the date or closing
  window so agency clients or prospects know how much time they have.

> Tip: keep the message under fifteen words so it reads at a glance
> and the button stays visible without the strip growing too tall.

## More in Marketing Announcement Banners

- [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 Countdown](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners/with-countdown)
- [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)
