I am talking about a button that appears under a certain width of the screen that hides / hides the menu when pressed (screenshot below). I am trying to reproduce its behavior on my website without resorting to using bootstrap (because I like to work without frameworks).

I looked at the source code, but I canβt determine exactly how this works, and what replication behavior is the most efficient way. From what I can tell, it works with javascript, applying a hidden / hidden class activated by the button in the menu.
Is it possible to reproduce this with the checkbox css flag? Or is it better to use javascript?
user1694077
source share