Hide container after drawer opens

This commit is contained in:
Ferit Yiğit BALABAN
2022-07-22 12:13:40 +03:00
parent a687fad2f7
commit 031f4b251c

View File

@@ -47,10 +47,13 @@ function hideNavitems() {
async function toggleDropdown() {
if (dropdown.classList.contains('hidden')) {
showDropdown();
await sleep(550);
document.getElementById("container").style.display = "none";
await sleep(200);
showNavitems();
}
else {
document.getElementById("container").style.display = "grid";
dropdown.classList.add('dropdown_close_animation');
await sleep(550);
dropdown.classList.remove('dropdown_close_animation');