# Components Card: Border Gradient Animation Card

A card framed by a shifting gradient border that flows around the edges. Use it to highlight a premium tier or hero item in a grid of options.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/cards/border-gradient-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-gradient-animation-card.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-cards-border-gradient-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-gradient-animation-card.json"`.

## Depends on

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

## About this block

Border Gradient Animation Card wraps a standard card in a continuously
spinning conic gradient that produces a shifting color border flowing
around all four edges. Inside sits a header with a title and short
description, a content area for a paragraph of supporting text, and a
footer row holding two buttons side by side.

The card body and its sections are fully independent. You can swap the
title, description, and paragraph for any copy, remove the footer
buttons entirely, or replace them with a single primary action. The
animation runs at a fixed speed and requires no configuration.

## When to use

Reach for this block when one card in a grid needs to stand out as the
recommended or featured option. On a developer tools site it works well
on a pricing page to mark the tier most users should choose, or on a
feature landing page to draw attention to the primary call to action
before a visitor scrolls past. It has more visual weight than the static
[Gradient Border Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/gradient-border-card)
and more polish than the simple
[Border Animation Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-animation-card),
so use it when the gradient motion is appropriate rather than distracting.

A natural flow around it on a Components page:

**Before**

- A [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) group block to introduce tiers
  or labels that give the card context
- A short headline section to frame the choice being presented

**After**

- [Border Highlight Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-highlight-card)
  for the secondary option so visitors can compare side by side
- [Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons) for a standalone action row
  below the card group

## What you can display

The card suits any scenario where a single item needs to read as premium
or primary at a glance. A few directions to consider:

- **A featured pricing tier.** Place the card around your recommended
  plan so the animated border separates it from plainer siblings in the
  grid.
- **A quickstart action.** Fill the content area with a short
  description of what happens next and let the footer buttons handle
  confirm and cancel.
- **A highlighted API or SDK option.** Use the title and description to
  name a tool and its key benefit, pointing developers toward the most
  common starting point.

> Tip: keep the paragraph inside the card to two or three short
> sentences so the card stays compact and the border animation remains
> the visual focus.

## More in Components Cards

- [Border Accent Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-accent-card)
- [Border Animation Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-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)
