# Components Card: Perspective Hover Card

A card that rotates in 3D space as the pointer crosses it for depth. Use it for hero items or showcases where motion makes a tile feel tactile.

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

## Install

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

## Depends on

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

## About this block

Perspective Hover Card is a single interactive card. A header holds a
title and a short description, the body carries a paragraph of supporting
text, and the footer holds two buttons side by side: a secondary outline
action on the left and a primary action on the right. When the pointer
enters the card the whole surface tilts forward along the X axis while
an inner shadow fades in at the top edge and each layer of content lifts
by a small, staggered amount, giving the impression of depth within a
flat frame.

The card is a standalone unit. The title, description, body copy, and
button labels are all plain text you can swap without touching the motion
logic. The tilt angle and shadow intensity are controlled through inline
styles, so you can tune the depth feel by adjusting those values directly.

## When to use

Reach for this block when one action or offer needs to feel tangible
rather than flat. It suits a fintech or banking product well: a "Create
account," "Start transfer," or "Open card" call to action gains weight
from the physical tilt in a way a static card cannot match. It works on
a focused landing section, a modal trigger area, or a spotlight slot
inside a wider grid where one item should read as primary.

The [Tilt Effect Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/tilt-effect-card) follows
the cursor in two axes; this block tilts on a single axis and resets
cleanly, which reads as more purposeful and less playful.

A natural flow around it on a Components page:

**Before**

- A [Hover Effect Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/hover-effect-card) to
  establish that cards on the page respond to the pointer before the
  deeper motion arrives
- A short hero or headline section to set the context for the action

**After**

- A [Border Highlight Card](https://www.shadcn-ui-blocks.com/blocks/components/cards/border-highlight-card)
  to carry secondary options in the same interaction zone
- A [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) row to reinforce trust signals
  below the primary call to action

## What you can customize

The card has three content zones and one interactive wrapper, all
straightforward to adapt:

- **Title and description.** Swap the header copy to name the specific
  product action, such as opening a savings account or initiating a wire,
  and the description to set the one-line expectation.
- **Body paragraph.** Replace the supporting text with a concise summary
  of what happens next so the user knows what they are committing to
  before they click.
- **Button labels and variants.** Relabel the outline button to match your
  cancel or back flow and the primary button to the real confirm action;
  both wiring and styling sit in the footer and are independent of the
  tilt wrapper.

> Tip: keep the card content short so the tilt feels smooth; tall cards
> with long copy make the perspective shift look exaggerated on larger
> screens.

## 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 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)
- [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)
