6 ms·
In 2020, a collapsible section is a matter of adding / removing a classname and a CSS animation; there's a few ways to do so, using jQuery is one, but you don't
by Cthulhu_ 5y ago
In 2020, a collapsible section is a matter of adding / removing a classname and a CSS animation; there's a few ways to do so, using jQuery is one, but you don't need thousands of lines of a JS library (network bandwidth + JS interpretation) to achieve that.
- have_faith 5y agoCan CSS transitions and animations handle animating to auto height/widths yet?
- d1sxeyes 5y agoI don't think so. One trick I've used to good effect is setting an high max-height, then translating by 100% and removing pointer events.