Using custom accordions? There's an easier way! 🪗
The <details> element now has a name attribute with support across all major browsers.
✨ No more custom handling for UI accordions
✨ Less code to maintain
✨ Native browser support
Try now 👇
https://developer.mozilla.org/en-US/blog/html-details-exclusive-accordions/
@MDN ✨ You can't add a closing animation using css, so you'll have to write an ugly crutch in js