Hide container after drawer opens
This commit is contained in:
@@ -47,10 +47,13 @@ function hideNavitems() {
|
|||||||
async function toggleDropdown() {
|
async function toggleDropdown() {
|
||||||
if (dropdown.classList.contains('hidden')) {
|
if (dropdown.classList.contains('hidden')) {
|
||||||
showDropdown();
|
showDropdown();
|
||||||
|
await sleep(550);
|
||||||
|
document.getElementById("container").style.display = "none";
|
||||||
await sleep(200);
|
await sleep(200);
|
||||||
showNavitems();
|
showNavitems();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
document.getElementById("container").style.display = "grid";
|
||||||
dropdown.classList.add('dropdown_close_animation');
|
dropdown.classList.add('dropdown_close_animation');
|
||||||
await sleep(550);
|
await sleep(550);
|
||||||
dropdown.classList.remove('dropdown_close_animation');
|
dropdown.classList.remove('dropdown_close_animation');
|
||||||
|
|||||||
Reference in New Issue
Block a user