Skip to content
WunderUI
All effectsCard

Height to Auto

A section opens to exactly the height of its content, for accordions and expandable rows.

Modern CSSCardPro

Meant for

AccordionCollapsibleData Grid row

Usage

On a Card

A transition, not a loop — click Filters to close and open it (until you reach for it, the preview does it on its own). The section opens to the height of its own content with no measured pixel value anywhere: interpolate-size: allow-keywords is what lets height: 0 transition to height: auto. Chromium 129+ — elsewhere it still opens, it just jumps.

The class is wm wm-height-to-auto — the first half is the marker the trigger and reduced-motion rules hook into, the second is the effect.