Animated Border CTA
Split layout pairing heading, copy, and buttons on one side with a floating image card on the other. The card sits inside a continuously rotating conic-gradient border ring, backed by a soft blurred glow shape, and the photo itself scales up slightly when the card is hovered for a premium, modern feel.
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/animated-border-cta.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/cta/cta48.tsx instead.
Usage
The file also exports cta48Demo, 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 { Cta48, cta48Demo } from "@/components/blocks/cta/cta48"; export default function Page() { return <Cta48 {...cta48Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Design that moves at your speed" | Heading on the text side. |
| description | string | "A living workspace that adapts as your ideas do, with real-time previews so you always see exactly what you're shipping." | Supporting copy under the heading. |
| primaryLabel | string | "Start free trial" | Label for the primary button. |
| primaryHref | string | "#" | Link target for the primary button. |
| secondaryLabel | string | "Watch demo" | Label for the secondary button. |
| secondaryHref | string | "#" | Link target for the secondary button. |
| image | MediaSlotImage | none | Photo shown inside the animated-border card. |
| className | string | none | Extra classes for the outer section element. |
Behavior notes
- The border ring is a `conic-gradient` background on an absolutely-positioned layer, continuously rotated with a component-scoped `@keyframes cta48-spin` (`transform: rotate(360deg)` on an infinite linear loop); the actual photo sits in an inset `bg-background` layer on top so only the ring shows the gradient.
- A blurred, colored `blur-3xl` shape sits behind the card as a soft ambient glow; it is purely decorative and marked `aria-hidden`.
- The photo itself scales up slightly on `group-hover` via `transition-transform`, no JavaScript mouse-tracking involved.
- Both buttons are inert links (`render={<Link/>}`) pointing at `#` by default; there is no real signup flow wired up.
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.