interpolate-size
Limited availability74% of usersExperimental
It allows you to animate an element's size to or from keywords like 'auto', 'min-content' or 'max-content' smoothly.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Firefox or Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
numeric-only- Inherited
- Yes
- Applies to
- all elements
- Animation type
- notAnimatable
Quick example
section {
/* Enables smooth transitions to 'height: auto' */
interpolate-size: allow-keywords;
transition: height 0.3s ease;
height: 0;
overflow: hidden;
}
section.open {
height: auto;
}Values
numeric-onlyallow-keywordsRelated snippet
Smooth height auto animations without JavaScriptAnimation →interpolate-size browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage74%of people can use this26% use a browser without it.
Browsers
129+
129+Mobile
129+Android
Interop 2027 candidate. Tracked for Interop 2027. Official focus areas publish early 2027; proposals are open through September 2026. See Interop 2027 →