0

Can anyone pls help in this issue ?

https://code.sololearn.com/W2HixdvmszV5/?ref=app why my hamburger doesn't respond when i first time click on it. it drops down links after clicking double times on hamburger ??

19th May 2022, 7:50 AM
Davinder Kumar
Davinder Kumar - avatar
2 ответов
+ 1
window.onload=()=>{ let hamburger = document.getElementById('hamburger'); hamburger.addEventListener('click', function () { let hidden = document.getElementById('hidden'); if(hidden.style.display === 'block'){ hidden.style.display = 'none'; }else{ hidden.style.display = 'block'; } }) }
19th May 2022, 8:32 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
0
🍇 Alex Tușinean 💜 Thanks you ❤️ and pls can you tell me how can i add here transition ?? i want to drop downs links smoothly whenever i click on the hamburger.
19th May 2022, 8:59 AM
Davinder Kumar
Davinder Kumar - avatar