If you want to toggle a container which is a flexbox, one of the easiest ways, in fact, is to surround your flex container with a standard block container and then use the toggle function on the block container, like so:
JavaScript
jQuery toggle with Flexbox
Jul 19, 2022
... read more