# Portfolio CTA Banner: Sticky CTA

A banner that stays fixed as the visitor scrolls, keeping a button always in view. Useful for long portfolio pages where the offer should stay reachable.

- Page: https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-cta-banner/sticky-cta
- Collection: [Portfolio](https://www.shadcn-ui-blocks.com/blocks/portfolio), Free tier
- Group: [CTA Banner](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-cta-banner)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-cta-banner/sticky-cta.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/portfolio-portfolio-cta-banner-sticky-cta
```

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/portfolio-portfolio-cta-banner-sticky-cta.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/portfolio/portfolio-cta-banner/sticky-cta`

## About this block

Sticky CTA is a fixed bottom bar that rides with the visitor as they scroll.
It holds a single line of copy on the left and a button with an arrow icon on
the right. On mobile the two stack vertically and a small dismiss button
appears in the top corner so the bar does not block the page permanently. On
wider screens the bar sits flat along the bottom edge and the dismiss control
is hidden. After the visitor scrolls past 300 pixels the bar slides into view
on mobile; on desktop it is present from the first moment.

The copy, the button label, and the scroll threshold are all yours to adjust.
The dismiss logic and the scroll listener are self-contained, so you can swap
the message or change the button destination without touching either behavior.

## When to use

Reach for this block when your portfolio page is long and your core offer
needs to stay in reach without pulling the visitor away from the work
samples they are reading. It suits a creative agency or studio site where a
visitor may scroll through several case studies before deciding to get in
touch. The persistent bar keeps the booking or inquiry action visible without
interrupting the reading flow the way a modal would.

A natural flow around it on a Portfolio page:

**Before**

- A [hero showcase](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-hero-showcases) to open the
  page and introduce the studio before the bar appears
- [Project Displays](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-project-displays) as the
  main scrolling content the bar rides alongside

**After**

- A [Contact Sections](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-contact-sections) block
  at the bottom for visitors who dismiss the bar and scroll to the end
  instead

## What you can customize

The bar has three moving parts you will likely want to tailor:

- **The availability message.** Replace the demo copy with your own
  availability window or current offer so the bar reflects what is actually
  true right now.
- **The button label and destination.** Point the button at a booking page,
  a contact form, or an email link depending on how your studio handles
  initial inquiries.
- **The scroll trigger depth.** Raise or lower the pixel threshold to
  control exactly how far a mobile visitor scrolls before the bar slides in,
  giving earlier or later reinforcement.

> Tip: keep the message to a single short sentence so it reads cleanly at
> the small text size and does not wrap on narrow phones.

## More in Portfolio CTA Banner

- [Full Width Bold Banner](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-cta-banner/full-width-bold-banner)
- [Inline CTA](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-cta-banner/inline-cta)
- [Personal Photo CTA](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-cta-banner/personal-photo-cta)
- [Split CTA](https://www.shadcn-ui-blocks.com/blocks/portfolio/portfolio-cta-banner/split-cta)
