Learn how to create a animated sidebar menu with HTML, CSS and JavaScript. In this video we'll walk you through step-by-step on how to add sidebar in websites/webpages. Code: bit.ly/3oC1MXB
Hi, instead of using onclick() within the HTML, I assigned 'id=toggleID' to the div of the burger menu , and then i Did this in the JavaScript file but it didnt work like the onclick() method. let toggleMyMenu = document.getElementById("toggleID"); toggleMyMenu.addEventListener("click", () => { document.getElementById("sidebar").classList.toggle("active"); }); Would appreciate your reply and reasons as to why it didnt work thanks!
Just stick with the css, I looked up what they're talking about and its a bit outdated or not well supported, a bit more head ache than its worth for a menu.
amazing tutorial....delivering nice content without a huge amount of code!!Pretty effective, beautiful and precisely done in just 10 minutes!....Just keep it up!!Got a subscriber!!...Hugs from Brazil!!
cool. i found several things that i dindt have on my jon duckett books. first adding the onclick at the html and not on the js, second the very useful classlist (didnt know it even existed), third the icon made of span display blocks was very clever, and last the transition (ive known of its existance since its very important but its not included in most my books)
I have wanted to make the same menu, but on the right side, so instead of "left", I added "right". But somehow, on my web page there only list of the menu is visible, nothing more (I mean that css and js function does not work) :/ could someone advise what to do?
thanks bhai you really done a great job by explaining in a simple way ... good going brother keep it up nd thanks for the help in return i will just subscribe your channel...
Hey guys! Can someone explain to me what is position fixed? I roughly know a bit a bout it but not much... Can you still use the attributes left, right, top and bottom? Does it stay in one place because I do realise that when I use position relative, it does move things around sometimes...
This is a great tutorial! I am new to php and web development.. is it possible to leave questions here and get a reply promptly? I have found it hard to get some good decent help...
Thank you! May I ask you a question, please? By using your solution, in my case, the menù appears over the rest of the page, by covering the part of the page. I would like it move away the rest of the page during it appers. Does it possible? (considering that the rest of the page is another ...