Menu menu is not working, when I click on toggle-btn it is not calling my menu-config, it is not appearing
function toggleSidebat(){
document.getElementById("menu-config").classList.toggle('active');
}
*{
margin: 0px;
padding: 0px;
}
#menu-config{
width: 200px;
height: 100%;
position: fixed;
background-color: #3589F0;
left: -200px
}
#menu-config .active{
left: 0px;
}
#menu-config .toggle-btn{
background-color: #44bd32;
position: absolute;
right: -50px;
top: 0px;
width: 50px;
height: 50px;
cursor: pointer;
}
#menu-config .toggle-btn img{
width: 35px;
height: 35px;
position: absolute;
left: 18%;
top: 18%;
display: none;
}
#menu-config .toggle-btn:hover img{
transform: rotate(1000grad);
transition: 8s;
}
<div id="menu-config">
<div class="toggle-btn" onclick="toggleSidebat()">
<img src="../Imagens/settings.png" alt="">
</div>
opa