# Components Card: Border Animation Card

A card whose border traces a moving outline around the edges. Use it to spotlight a featured plan, offer, or item that needs attention on the page.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/cards/border-animation-card
- Collection: [Components](https://www.shadcn-ui-blocks.com/blocks/components), Free tier
- Group: [Cards](https://www.shadcn-ui-blocks.com/blocks/components/cards)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/components/cards/border-animation-card.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-cards-border-animation-card
```

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/components-cards-border-animation-card.json"`.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: button, card
- Installs to: `@/components/blocks/components/cards/border-animation-card`

## About this block

Border Animation Card is a single card with a continuously moving outline
that traces around all four edges. A thin wrapper layer sits behind the card
surface and runs an animated sweep, while the card itself holds a header
with a title and description, a body paragraph, and a footer with two
buttons side by side.

The card content is entirely independent of the animation. You can swap the
title, description, and body copy for any subject, replace the Cancel and
Deploy buttons with whatever actions fit your context, or drop the footer
entirely if no action is needed.

## When to use

Reach for this block when one item in a grid or list needs to stand out
without adding a badge or ribbon. On an ecommerce storefront this works well
for a featured product, a limited offer, or an upsell prompt that sits
alongside quieter sibling cards. The moving outline draws the eye naturally
so the card reads as the primary choice before the visitor reads a word.

A natural flow around it on a Components page:

**Before**

- [Corner Ribbon Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/corner-ribbon-card) to flag
  a label, then let the animation card carry the main offer below it
- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to set category context above the
  featured card

**After**

- [Border Highlight Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-highlight-card)
  for the secondary recommended option directly beneath
- [Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons) for a standalone call to action that
  follows up the card's primary action

## What you can display

The frame suits any single item you want to promote over its neighbors. A
few ways to use it on a storefront or product page:

- **A featured product or bundle.** Fill the header with the item name and
  a one-line hook, then use the body for a short description and the footer
  for Add to Cart and Save for Later.
- **A time-limited offer.** Put the promotion headline in the title and
  expiry context in the description so urgency is visible before the body.
- **An upsell or upgrade prompt.** Frame an upgrade path inside the card
  with a clear action button so the offer stands apart from the base plan.

> Tip: keep the animated border to one card per visible section so the
> motion stays meaningful rather than competing with everything else.

## More in Components Cards

- [Border Accent Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-accent-card)
- [Border Gradient Animation Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-gradient-animation-card)
- [Border Highlight Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-highlight-card)
- [Corner Ribbon Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/corner-ribbon-card)
- [Cutout Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/cutout-border-card)
- [Dashed Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/dashed-border-card)
- [Double Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/double-border-card)
- [Expandable Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/expandable-card)
- [Gradient Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/gradient-border-card)
- [Hover Effect Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/hover-effect-card)
- [Hover Reveal Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/hover-reveal-card)
- [Icon Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/icon-card)
- [Magnetic Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/magnetic-card)
- [Neon Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/neon-border-card)
- [Perspective Hover Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/perspective-hover-card)
- [Progress Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/progress-card)
- [Pulse Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/pulse-border-card)
- [Shimmer Effect Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/shimmer-effect-card)
- [Stacked Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/stacked-card)
- [Status Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/status-card)
- [Tilt Effect Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/tilt-effect-card)
