How do you make an accordion using timeline?

Hi! How do you make an accordion using timeline?
I’m trying to make an accordion. I am stuck at the point with height: auto. By default the height of the accordion content container is 0 px, when I click on the trigger the height should change to height:auto, but when I click nothing happens - the height:auto value doesn’t work.

How can I implement opening and closing of the accordion using timeline?