Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
A solution to the unsolved CSS problem of animating an element height (stefanjudis.com)
4 points by halb 10 months ago | hide | past | favorite | 1 comment


Post author here: this post is a bit dated, and I need to update it. While the CSS grid trick works fine, hopefully, very soon, there'll be better ways to animate an element's height.

Chromium is shipping `interpolate-size` already, which enables transitioning from/to `height: auto`. Webkit and Firefox still have to agree with this web platform addition, but I'm optimistic. So let's hope!




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: