Jason Knight
Mar 21, 2022

--

I don't know if I'd say it has "this case covered" since there's no way to animate the open/close which a lot of clients -- and artists under the delusion they know what design is -- jones for.

But that's why enhancing the correct (details/summary) markup with scripting is the right approach. The worst that happens scripting or CSS blocked is that it reverts to the default behavior without animation.

Animating them is kind of a wonk, as you basically have to intercept the SUMMARY's click / state change forcing it to stay open all the time, whilst then tracking the animation separately.

See this demo I made whilst calling flowbite incompetent idiotic rubbish.

https://codepen.io/jason-knight/pen/ExbwRer?editors=1111

--

--

Jason Knight
Jason Knight

Written by Jason Knight

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse

No responses yet