@Alex-Archer-I
Posted
Hi!
Alas, transition doesn't work with changing display
properties and with height
if it's set to auto
. So, we have to find various strange ways to animate accordions.
I solved this by changing height
via JS from 0 to scrollHeight
- it's a special readonly property which return a height of the element's content. That way transition works.
Marked as helpful