Card resize

Animate container width and height transitions using CSS custom properties.

1|Updated Jun 30, 2026
One-click install
npx skills add https://github.com/Itinerant18/Urban-assist --skill card-resize-itinerant18
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Card resize
Source: https://github.com/Itinerant18/Urban-assist/tree/main/.claude/skills/transitions-dev
Command: npx skills add https://github.com/Itinerant18/Urban-assist --skill card-resize-itinerant18

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the challenge of creating smooth, performant layout transitions when container sizes change, eliminating the need for complex JavaScript-based animation libraries.

Core Features & Use Cases

  • Pure CSS Transitions: Leverages CSS transitions for width and height changes, ensuring high performance and minimal overhead.
  • State-Driven Animation: Seamlessly animates between compact and expanded states for UI components like panels, cards, or list rows.
  • Use Case: Use this to animate a sidebar or a collapsible card component when a user toggles a view state, ensuring the layout reflow feels natural and polished.

Quick Start

Apply the t-resize class to your container element and toggle its width or height via a state class to trigger the smooth transition.

Frequently Asked Questions about Card resize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I animate container width and height changes with CSS?

You can animate container width and height changes with CSS by applying the t-resize class to your element and toggling a state class to trigger smooth transitions. This approach uses CSS custom properties for duration and easing.

Can I animate sidebar or card resizing without JavaScript libraries?

Yes, you can animate sidebar or card resizing without JavaScript libraries by using pure CSS transitions. This Skill provides a state-driven animation mechanism that handles layout reflows naturally for collapsible UI components.

What is the best way to handle layout transitions for expanding and collapsing panels?

The best way to handle layout transitions for expanding and collapsing panels is using CSS custom properties to ensure consistent motion design. This method leverages native CSS transitions for high performance and minimal overhead.

How do CSS transitions handle compact and expanded UI states?

CSS transitions handle compact and expanded UI states by fluidly animating between defined width and height dimensions. Applying a state class triggers the transition, ensuring the layout reflow feels natural and polished.

Do I need JavaScript to orchestrate smooth UI resizing for list items?

No, you do not need JavaScript to orchestrate smooth UI resizing for list items. This Skill eliminates the need for JavaScript-based animation libraries by leveraging pure CSS transitions for container dimension changes.