design-infraGitHub
Report a problem or share feedback← Catalog

Card resize

free

transitions/card-resize

Tweening a container's width or height when its layout state changes (compact ↔ expanded card, collapsing panel, list row toggling extra detail). Pure CSS — no JS required beyond the class toggle that drives the size change.

state — subtlerecipeRefinedTrustworthy
$npx skills add Jakubantalik/transitions.dev # then ask: "apply the card-resize transition"
Source
transitions.dev
Kind
transition
Categories
transition, card
Use as
recipe — technique you apply to your own markup
Applies to
card
Motion
on state · subtle · css · low cost · respects reduced motion
Tags
css
Licence
Free for unlimited personal/commercial use in your products; no republishing the collection. Pro (React/TS variants) $9/mo or $149 lifetime.
Live demo
transitions.dev
Docs
transitions.dev