
Accordions, the easy way
Smooth CSS accordions without guessing a max-height: measure the content once with a little JavaScript, store it in a CSS variable and let hidden inputs do the rest.
1 post

Smooth CSS accordions without guessing a max-height: measure the content once with a little JavaScript, store it in a CSS variable and let hidden inputs do the rest.