---
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
  - webdev
  - thought
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; /* 👈 */
}
```

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
