CSS4 solution to transition 0 to auto?

I've been looking through CSS4 articles but couldn't find it.

In CSS3, when transitions were introduced, one of the popular problems was going from 0 to auto without the need for JavaScript.

We had a solution max-height

, but for this height it will only be accurate transition-duration

. If auto

this element says double max-height, then we will see a noticeable jump.

Does CSS4 provide a solution for this 0 question for auto release? Specifically for height / width?

+3


source to share


1 answer


there is a great article about this on css trick https://css-tricks.com/using-css-transitions-auto-dimensions/



Hope this helps you.

+2


source







All Articles