Skip to content

    Browse components

    Melt Card

    An image card that leans toward the cursor and melts into noisy SVG displacement the faster you move.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/melt-card

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/melt-card.json

    Usage

    import { MeltCard } from "@/components/ui/melt-card";
    
    <MeltCard image="/portrait.jpg" alt="Portrait">
      <p className="text-4xl font-semibold">Decay</p>
    </MeltCard>

    Props

    PropTypeDefaultDescription
    imagestring""Image URL.
    widthnumber300Card width in px.
    heightnumber400Card height in px.
    intensitynumber1Displacement strength.
    frequencynumber0.012Noise frequency (lower = bigger blobs).
    driftnumber18Px the card drifts toward the cursor.
    altstring""Image alt text.
    childrenReactNode—Overlay content, e.g. a caption.
    classNamestring—Extra classes for the root element.