Account Deleted
Hi, in a real job, the designer must provide a design for every breakpoint, this case is just for learning purposes. To reduce code, create two individual buttons: the hamburguer, inside the nav-bar and the close one, place inside the side menu, everyone launch a respective function; and classList
is a good choice, just adding inline styles is not recommended. If you have more questions let me know
Marked as helpful