Back to library

cards

Card 7

A full-bleed image card with scale-on-hover effect and gradient overlay. From Cnippet UI.

Inspired by Cnippet UI · View source

Preview

Background

Image Scale Effect

This card features a smooth image scaling effect and background overlay on hover.

Copy for AI

Copy for Lovable is the fastest way to move this component into another Lovable project — it copies the full prompt with dependencies, files, and a usage example. Copy all files gives you the raw source if you want to paste it manually.

Installation

npx shadcn@latest add @cnippet/v-card-7

Paste into a terminal — or paste into a Lovable chat and I'll run it for you.

Source files

components/ui/v-card-7.tsx
import { Card } from "./card";

export function VCard7() {
  return (
    <Card className="group/card relative h-96 w-full max-w-xs overflow-hidden border-0 p-0!">
      <img
        alt="Background"
        className="absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover/card:scale-110"
        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>
  );
}

export default VCard7;

Dependencies

@base-ui/react