Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cubefox
· 3y ago · 0 comments
Not sure CSS is really moving that much. E.g. doing a CSS transition from/to height:auto is still not supported.
Comments
[–]
benfrain
3y ago
You can achieve that with grid right now. Set a row to height zero, with a container inside with overflow: hidden, then toggle that row to height 1fr. Stick whatever transition you want on it — job done
[–]
cubefox
OP
3y ago
Thanks. A lot of things are possible with tricks that should have long been supported natively.