In this project the script waits for a click event and by using the CSS flex property it animates the div smoothly with the toggle property.

This project require no libraries, no framework and no compilers, just vanilla JavaScript.