---
title: "Animate to height: auto; (and other intrinsic sizing keywords)..."
description: "!https://developer.chrome.com/docs/css-ui/animate-to-height-auto/"
date: 2025-01-09
published: true
tags:
  - css
  - dev
  - thought
  - webdev
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://developer.chrome.com/docs/css-ui/animate-to-height-auto/" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://developer.chrome.com/static/docs/css-ui/animate-to-height-auto/image/animate-to-height-auto.png" alt="Animate to height: auto; (and other intrinsic sizing keywords) in CSS  |  CSS and UI  |  Chrome for Developers — Animate to and from intrinsic sizing keywords with `interpolate-size` and `calc-size()`" loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">Animate to height: auto; (and other intrinsic sizing keywords) in CSS  |  CSS and UI  |  Chrome for Developers</div>
      <div class="embed-card-description">Animate to and from intrinsic sizing keywords with `interpolate-size` and `calc-size()`</div>
      <div class="embed-card-meta">Chrome for Developers &middot; developer.chrome.com</div>
    </div>
  </a>
</div>


Css is getting so good, new things like interpolate-size are making things that use to require some deep expertise and hacks intuitive and easy.

``` css
/* Opt-in the whole page to interpolate sizes to/from keywords */
:root {
    interpolate-size: allow-keywords; /* 👈 */
}
```
