Gravity Expand Card

Click expands with spring; collapse on second click/outside.

Try it: Click to expand; click again or outside to collapse.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/gravity-expand-card.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/gravity-expand-card. You can also copy the source into components/ui/gravity-expand-card.tsx (view on GitHub).

Usage

import { GravityExpandCard } from '@/components/ui/gravity-expand-card'

Dependencies

  • motion
  • Flip Checkout Card

    Frosted payment card mirrors every keystroke, flips for the security code, and the checkout condenses into a receipt once paid.

  • Liquid Morph Card

    Border/blob morphs toward pointer.

  • Book Spine Shelf

    A shelf of generated book spines: the hovered book slides out while neighbours lean away, and choosing one swings its cover open on a hinge into a reading card with an optional ribbon. Arrow keys…

  • Hologram Flip Card

    Flip to holographic rear with iridescent sheen.

  • Mesh Project Cards

    Project cards headed by a living mesh gradient — drifting blurred blobs with film grain — and a status pill that pulses for live and in-progress work. Cards tilt toward the pointer with a travelling…

  • Pixel Reveal

    Image or generated art dissolves in through a shrinking pixel grid when scrolled into view — random, diagonal or centre-out — with an optional replay.

See all 27 Cards components