(no title)
mablopoule | 11 months ago
Something like:
<header class="main-header">
<input class="hamburger" id="hamburger-action" type="checkbox" />
<label for="hamburger-action">Some icon here</label>
<nav class="main-navigation">My menu here</nav>
</header>
and then use the `:checked` CSS selector to display or not the hamburger menu, you can see it working in my (very barebone :D) website [1]. Note that this implementation is not keyboard-navigable because the input is not visible, I should fix it someday.
No comments yet.