We Can Finally Animate height: auto; In CSS

preview_player
Показать описание


🌎 Find Me Here:

#Shorts
Рекомендации по теме
Комментарии
Автор

the best part is by the time this feature will be fully supported by all browser, i am going to forget about this feature

asifurrahman
Автор

It works fine with height: fit-content instead of auto.

HenriqueErzinger
Автор

I was so excited 🤣🤞🏻 Hopefully it gets implemented

lexidugo
Автор

So do display: grid; grid-template-rows: 0fr -> 1fr

tito_me_doe
Автор

love you bro, i've struggled alot with this

rdalert
Автор

Easy cross browser support is to animate grid values. But ofc this is even better. Hope it becomes standard asap.

nikolamiticdev
Автор

A week looking for something like that! 😮

danielmateupardo
Автор

This is exactly what i needed to do today. 😢

BobVerheij
Автор

But what's your secret to be always updated about new features?

RichardMonné
Автор

I wonder if you can achieve this using fr units or use sizing keywords like max-content or fit-content

hikari
Автор

How good is the browser support yet and how will ist develope?

udk-tutorialsbyluke
Автор

It's nice, but why it took so long to add it in CSS?

mahmoudzakria
Автор

Will this not work if we use height:fit-content
and some padding at the bottom...???

Atreyaa
Автор

But you shouldn't use height in animations due to performance issues. It's advised to use transform instead

woodrunsdeep
Автор

it support for browser version since 2021

QuangVu-zqee
Автор

isn't that max-height already do the job well?

ban_droid
Автор

Why are you shaking your head so much? This is crazy dude

pcgi
Автор

this changes so much, no js needed 😭, please browser companies make this feature available

notpowder
Автор

all these new rules with auto height animation and the new display none to block or whatever have very different APIs, they're making an even bigger mess of CSS imo with how they aren't even bothering to standarize all these rules

nokomoko
Автор

supported on chrome only, so is useless

denismarginas