Unlocking Auto-Height Transitions with Experimental CSS Features
The experimental CSS function calc-size(auto) can be used so that transitions and animations can go from zero (0) to this value. But that is unlikely to be the final syntax! So be forewarned.