# V card 7

> With Image Scale Hover Effect

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/v-card-7).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-card-7
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-card-7-light-567a01b8bd15e5d0.png
- Registry item: https://ui.cnippet.dev/r/v-card-7.json
- Categories: card
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-card-7.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/card`

## Files

### `registry/default/variants/v-card-7.tsx`

```tsx
import Image from "next/image";

import { Card } from "@/registry/default/ui/card";

export function Pattern() {
  return (
    <Card className="group/card relative h-96 w-full max-w-xs overflow-hidden border-0 p-0!">
      <Image
        alt="Background"
        className="object-cover transition-transform duration-500 group-hover/card:scale-110"
        fill
        src="https://res.cloudinary.com/dcxm3ccir/image/upload/v1741613286/h1.jpg"
      />

      {/* Background fade effects */}
      <div className="absolute inset-x-0 bottom-0 h-1/2 bg-linear-to-t from-black/60 to-transparent transition-opacity duration-500 group-hover/card:from-black/70" />

      {/* Content */}
      <div className="relative flex h-full flex-col justify-end p-6">
        <h3 className="font-bold text-white text-xl">Image Scale Effect</h3>
        <p className="mt-2 text-sm text-white/90">
          This card features a smooth image scaling effect and background
          overlay on hover.
        </p>
      </div>
    </Card>
  );
}
```
