Report a problem or share feedback← Catalog
Card resize
freetransitions/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.
$
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
Similar
Compare all 4 →- Motion presetsoc/motion-presetsdesign-infra's motion languages (still / quiet / lively / cinematic) as motion/react transitions, springs and variants (fadeUp, scaleIn, stagger, press, lift). Set PROJECT_MOTION to your DESIGN.md `motion:` so hand-written animations match the system.
- AnimateView: App Storemotion/animate-view-app-storeAn example of animating cards inspired by the iOS App Store using AnimateView's shared element transitions from Motion for React.
- Clerk: Card Stackmotion/clerk-card-stackThe verification step of a custom Clerk flow. Submitting the email stacks a one-time-code card up over the sign-in card, with AnimatePresence popLayout dimming the card behind it.