Hey
@nil14,
So I was able to get the toggle bar to work, here are the screenshots:
View attachment 1325View attachment 1326
This can be accomplished from within the styles.css file, you need to replace display: grid under
.navbar__menu with display: none. Then under
.navbar__menu.active add
display: grid.
With this change, we are making sure that when the toggle bar is not active we are not displaying any menu items, however when the toggle is pressed then we display it as a grid.
CSS:
.navbar__menu {
display: none;
grid-template-columns: auto;
margin: 0;
width: 100%;
position: absolute;
transition: all 0.5s ease;
height: 50vh;
z-index: -1;
background: red;
}
.navbar__menu.active {
display: grid;
background: black ;
top: 100%;
opacity: 1;
transition: all 0.5s ease;
z-index: 99;
height: 50vh;
font-size: 1.6rem;
}