Vertical Marquee CTA
A gallery-wall call-to-action: a left column of photo tiles scrolls upward and a right column scrolls downward, framing a centered heading, description, and two buttons. The columns hide on small screens so the content stays the focus on mobile.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button, media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/vertical-marquee-cta.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/cta/cta51.tsx instead.
Usage
The file also exports cta51Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Cta51, cta51Demo } from "@/components/blocks/cta/cta51"; export default function Page() { return <Cta51 {...cta51Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "A gallery of what's possible" | Centered heading. |
| description | string | none | Supporting paragraph under the heading. |
| primaryLabel | string | "Get started free" | Label for the primary button. |
| primaryHref | string | "#" | Href for the primary button. |
| secondaryLabel | string | "Browse gallery" | Label for the secondary button. |
| secondaryHref | string | "#" | Href for the secondary button. |
| leftImages | MediaSlotImage[] | none | Photo tiles for the left column, scrolls upward. |
| rightImages | MediaSlotImage[] | none | Photo tiles for the right column, scrolls downward. |
| className | string | none | Extra classes for the outer section element. |
Behavior notes
- Both columns are a pure CSS @keyframes translateY loop on a doubled (duplicated) image list, no JavaScript animates the motion; the upward and downward columns use two distinct, uniquely-named keyframes (cta51-marquee-up/down) so their directions never collide, and both carry `motion-reduce:animate-none`.
- The columns are `aria-hidden` (decorative) and hidden below the `sm` breakpoint so narrow viewports show only the centered content, not a cramped three-column layout.
- Fully static Server Component: no event handlers, no client state.
More CTA Blocks
View all →centered-newsletter-cta
Centered Newsletter CTA
Minimal centered call-to-action with heading, description, and action buttons.
split-layout-newsletter-cta
Split Layout Newsletter CTA
Two-column call-to-action with a decorative image on one side and a feature list plus subscribe form on the other.
newsletter-social-proof-cta
Newsletter CTA with Social Proof
Newsletter call-to-action with an avatar stack, subscriber count, and a testimonial quote.
banner-cta
Banner CTA
Horizontal banner call-to-action with heading and action buttons side by side.
stats-cta
Stats CTA
Call-to-action section with impressive statistics and trust indicators above action buttons.
multi-card-cta
Multi-Card CTA
Three action cards side by side, each offering a different path to conversion.