Marquee CTA
A simple, high-impact call-to-action: a giant, low-opacity word or phrase loops horizontally across the full width behind the content, while a heading, description, and two buttons sit centered on top at full opacity.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/marquee-cta.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/cta/cta66.tsx instead.
Usage
The file also exports cta66Demo, 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 { Cta66, cta66Demo } from "@/components/blocks/cta/cta66"; export default function Page() { return <Cta66 {...cta66Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Ready when you are" | Foreground heading. |
| description | string | none | Supporting paragraph under the heading. |
| primaryLabel | string | "Start for free" | Label for the primary button. |
| primaryHref | string | "#" | Href for the primary button. |
| secondaryLabel | string | "Talk to sales" | Label for the secondary button. |
| secondaryHref | string | "#" | Href for the secondary button. |
| marqueeText | string | "LAUNCH" | Word/phrase repeated in the looping background marquee. |
| marqueeSpeed | number | 26 | Marquee loop duration in seconds, lower is faster. |
| className | string | none | Extra classes for the outer section element. |
Behavior notes
- The marquee is pure CSS: a scoped @keyframes translateX loop on a duplicated, doubled-width text row (aria-hidden, non-interactive, `motion-reduce:animate-none`), no JavaScript animates it.
- The marqueeSpeed prop only changes the CSS animation-duration via an inline style, it is never read in an effect or event handler.
- 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.