Responsive Animated Sidebar Menu From Scratch with HTML & CSS

Поделиться
HTML-код
  • Опубликовано: 9 мар 2018
  • ➢Tutorial Files: m.w3newbie.com/w/tutorial-20.zip
    ➢Courses: w3newbie.com/courses/
    ➢Website Resources: w3newbie.com/resources/
    Create A Responsive Animated Sidebar Menu From Scratch with HTML & CSS!

Комментарии • 87

  • @henryedcodes
    @henryedcodes Год назад +1

    this video saved me hours of gruesome thinking. thank you.

  • @jung-zen
    @jung-zen 2 года назад +1

    The best. Other tutorials make it wayy too fancy, this is perfect.

  • @juliacorrea7549
    @juliacorrea7549 3 года назад

    you are the MAN! thank you so much. i've been dying to figure this out.

  • @yohandelcuevasmorillo7828
    @yohandelcuevasmorillo7828 Год назад

    Exactly what I nedded man, thaks

  • @samanr9072
    @samanr9072 2 года назад +1

    it was absolutely amazing thank you for the video it REALLY helped me out

  • @LadanSoodmand
    @LadanSoodmand 3 года назад +1

    This is awesome. I've been struggling to make one.

  • @mananparmar6861
    @mananparmar6861 3 года назад

    seriously dude such a great and smooth tutorial thanks a lot seriously.

  • @parasarora5869
    @parasarora5869 5 лет назад

    thank you very much for such an awesome video...loved it !!!

  • @jayRbugz
    @jayRbugz 5 лет назад +1

    wow thank you, you're amazing, so well perfectly explained! i'm trying learn to do things the vanilla way, and this was very helpful, thank you again

    • @w3newbie
      @w3newbie  5 лет назад

      Awesome, thanks for watching!

  • @thefool2884
    @thefool2884 4 года назад +1

    thanks man! great help :)

  • @morpheuz2006
    @morpheuz2006 5 лет назад +2

    Very good..simple and efective

  • @samehbotrosgadallah
    @samehbotrosgadallah 4 года назад +2

    the best of explaining

  • @chickee.design
    @chickee.design 3 года назад

    Great tutorial! Thanks!

  • @annarey9959
    @annarey9959 4 года назад

    This is really helpful!! Thank you 🥰

  • @brandontaylor8372
    @brandontaylor8372 4 года назад

    I had forgotten I subscribe to your channel awhile ago and I was about to subscribe again haha

  • @fungalwater3175
    @fungalwater3175 4 года назад

    thanks for the great video. I was hoping to try to make my website by my self but I'm a beginner so I probably shouldn't have expected so much. Thanks again.

  • @julianwilliamsofficial
    @julianwilliamsofficial 4 года назад +4

    There is an error on the onclick on the close button... he made the typo but never corrected it. For the close icon tag, your onclick should be onclick="closeSlideMenu()" not onclick="closeSideMenu()"

    • @sheepmaster6775
      @sheepmaster6775 4 года назад

      Thanks bro you are awesome for past my life i was wondering why this close button is not closing. You are like an angle

    • @MohamedGamal11111
      @MohamedGamal11111 4 года назад +1

      Hello ! Thank you very much for this tutorial, it was super helpful. However, I'm struggling with something : how could I open AND close the menu with the hamburger instead of having to use the cross? The menu I am working on is quite big because it has the summary of my thesis in it. It causes another problem, The text in the menu is moving within the dark case when I open and close the menu

    • @elvishbeatle7307
      @elvishbeatle7307 3 года назад

      Thank you so much for that, I thought my sight had gone bad

  • @nazanin_ashrafi
    @nazanin_ashrafi 3 года назад

    Thank you for this amazing tutorial

  • @Nikos-gg5xb
    @Nikos-gg5xb 4 года назад

    Oh ok i copied the link on top and now its fine. Thanks a lot!

  • @nikolatesla466
    @nikolatesla466 2 года назад

    Nice work.

  • @XaviKstar
    @XaviKstar 3 года назад

    You Are A Good Teacher

  • @MohamedGamal11111
    @MohamedGamal11111 4 года назад +1

    Hello ! Thank you very much for this tutorial, it was super helpful. However, I'm struggling with something : how could I open AND close the menu with the hamburger instead of having to use the cross? The menu I am working on is quite big because it has the summary of my thesis in it. It causes another problem, The text in the menu is moving within the dark case when I open and close the menu. :)

  • @rondonalejandro
    @rondonalejandro 4 года назад +1

    Thanks very much..! - Great idea to create a NavMenu without any library, only code...! Thanks

  • @bernardroomie7879
    @bernardroomie7879 2 года назад

    Thank you for your tutorial! But, if you want to change the icon into something else, what should you do?

  • @livmcandrew2066
    @livmcandrew2066 4 года назад

    how do I do the exact same although have the Menu coming from the right side? In js I have changed to 'style.marginRight' and doesn't work.

  • @MsamerieJohnson
    @MsamerieJohnson 3 года назад

    Thank you for the easiest tutorial in the world.

  • @cocmods8854
    @cocmods8854 5 лет назад +1

    i think in starting it's little tuff, but after watched complete video it's so easy, you explain in easy way thanks

    • @w3newbie
      @w3newbie  5 лет назад +1

      Thanks! I know what you mean.

  • @eraze4137
    @eraze4137 3 года назад

    Does sb know why I get sent back to the top of the page when I close the navbar? I implemented this into my private Project and turned .slide a position to sticky, so when I scroll down my page, the navbar follows . Now when I close the navbar while I scrolled down, it sents me back to the top of the page. If I turn any other positions in css to sticky from this tutorial, the navbar won't work properly (which is why I turned ".slide a" to sticky)

  • @996Theking
    @996Theking 2 года назад

    where does that x and burger menu come from at the start?

  • @bikrammukherjee3287
    @bikrammukherjee3287 3 года назад

    What can I do if I want the same navbar in the right side also?

  • @AWPHOTOGRAPHYchannel
    @AWPHOTOGRAPHYchannel 4 года назад +1

    Thank you very much! Great video! I wanted to know how to stop text from falling down in the nav while closing and opening. For example if we have an 'a' tag as "Reach Us".. When I open the nav it starts with Reach and Us in different lines. Same while closing, as it gets to the edge they both jump in different lines. I don't want this to happen. Again thanks for the help.

    • @w3newbie
      @w3newbie  4 года назад +1

      Thanks for watching! You can add minimum width to the .nav a { min-width: 150px; } but then you'll need to pull the "X" to the right: .nav .close {
      position: absolute;
      top: 0;
      left: 150px;
      font-size: 30px
      }

    • @AWPHOTOGRAPHYchannel
      @AWPHOTOGRAPHYchannel 4 года назад

      @@w3newbie Thanks man! Appreciate it

  • @yamengames7120
    @yamengames7120 5 лет назад +1

    thank you sir

  • @sjostedtmarcus
    @sjostedtmarcus 3 года назад

    Great video! Good job! Is it possible to make the sidebar menu show when you log on to the website? And then you can click to hide it.

  • @michaelanderson6727
    @michaelanderson6727 3 года назад

    You're arr the best teacher

  • @apptechgamez9575
    @apptechgamez9575 4 года назад +1

    Ur d best

  • @namadeekahatapitiya176
    @namadeekahatapitiya176 3 года назад

    Thanks

  • @binishshaffi7942
    @binishshaffi7942 2 года назад +1

    Great

  • @Ailyseuh
    @Ailyseuh 4 года назад +1

    Hello ! Thank you very much for this tutorial, it was super helpful. However, I'm struggling with something : how could I open AND close the menu with the hamburger instead of having to use the cross? The menu I am working on is quite big because it has the summary of my thesis in it. It causes another problem, The text in the menu is moving within the dark case when I open and close the menu... If anyone has a suggestion, you are very welcome :)

    • @MohamedGamal11111
      @MohamedGamal11111 4 года назад

      Yes, and I like you, can he explain to us how to solve this problem?

  • @softwarejobs3716
    @softwarejobs3716 3 года назад

    thank you bro

  • @vince8093
    @vince8093 3 года назад

    how can ı float it to right ı used the float property but it didnt work out for me ca n you help

  • @amitgurung7121
    @amitgurung7121 5 лет назад

    how do we display another page for example form1.html inside a in place of responsive Animated Sidebar Menu when I click the Home for instance? keeping the sidebar on the page as it is...

  • @milymilo
    @milymilo 3 года назад

    Hey can someone help me move the position of the sidebar? I want it to be at the bottem left
    Edit: Neverind I got it fixed by setting the top tag to 1 and adding a bottem tag and setting it to 0 and changing the height. Its odd how this works

  • @jovaniguzman1865
    @jovaniguzman1865 3 года назад +1

    The three-line menu does not show up on my web browser and all the code is correct. Any ideas on what might be the problem

    • @sarahdadoun6864
      @sarahdadoun6864 3 года назад

      Yeah I think its some kind of a lie, im super annoyed. I inspected the website he gave us to download and his is commented out and theres like all kinds of weird code in there that he did not put in the video or in the file he shared. . U can just put a png probably instead of the and it should work.

  • @OnlyInstaGoX
    @OnlyInstaGoX 5 лет назад

    Thank you for the tutorial. Do you know how to fix this error: Uncaught TypeError: Cannot read property 'style' of null
    at openSlideMenu
    I did move the script at the end of the page before the closing the body tag, but still I am getting this error

    • @w3newbie
      @w3newbie  5 лет назад

      Hi Sami, sorry but I'm not familiar with this error you are receiving. I would double check your code to the video to make sure everything matches (should be fine if it matches) and you can always ask at the stack overflow forum which I recommend.

  • @dollarfitclub2842
    @dollarfitclub2842 3 года назад

    Can you apply this technique using dreamweaver?

  • @himanshuamreliya9817
    @himanshuamreliya9817 4 года назад

    awesome

  • @owletkami8018
    @owletkami8018 4 года назад +3

    How did he get the three bar icon in the first place?

    • @simon7706
      @simon7706 4 года назад

      It's a free to use library fontawesome.com

  • @vedantgupta7526
    @vedantgupta7526 5 лет назад

    how can we make this slider menu only for mobile, means on desktop come horizontal navigation bar and on mobile view when we click on toggle button it slide like this.

  • @apisitamklang6885
    @apisitamklang6885 3 года назад

    thxxx

  • @mahkamehfallah8321
    @mahkamehfallah8321 4 года назад

    thank u

  • @kubawojdya3820
    @kubawojdya3820 4 года назад

    man, is that script for this menu in Java Script? or in html only?

  • @AngelsFanTad
    @AngelsFanTad 5 лет назад

    I’m following this word for word in Dreamweaver CC, and its not closing when I copy and paste the function for it to close, what am I doing wrong?

    • @stevetad3583
      @stevetad3583 5 лет назад

      heres the code for it:
      Responsive Animated Sidebar Menu


      function openSlideMenu(){
      document.getElementById('menu').style.width = '250px';
      document.getElementById('content').style.marginLeft = '250px';
      }
      function closeSlideMenu(){
      document.getElementById('menu').style.width = '0';
      document.getElementById('content').style.marginLeft = '0';
      }












      Home
      About
      Services
      Contact


      S.T. Graffix Menu

    • @julianwilliamsofficial
      @julianwilliamsofficial 4 года назад

      @Steve Tad there is an error on the onclick on the close button... he made the typo but never corrected it. For the close icon tag, your onclick should be onclick="closeSlideMenu()" not onclick="closeSideMenu()"

  • @litwizxenxei8650
    @litwizxenxei8650 5 лет назад

    Am having issues creating the 3buttons icon can i get help pls m just stucked here

    • @julianwilliamsofficial
      @julianwilliamsofficial 4 года назад

      Your need the Font Awesome library, google Font Awesome CDN or Font Awesome Get Started

  • @sumankori4842
    @sumankori4842 5 лет назад +2

    sir pls share the fontawesome script link.

  • @smartdumb389
    @smartdumb389 4 года назад +1

    For everyone who is wondering "How did he get the bar icon" just paste this inside the head menu tag

  • @Iamintrover
    @Iamintrover 6 лет назад +1

    hello sir.. i have a problem about this codes.. i click the icon and the side bar show.. but when i click the x button.. its failed.. can you help me? thank you for the tutorial :)

    • @gabrielsouza4483
      @gabrielsouza4483 6 лет назад

      PROBBABLY YOU TYPED closeSideMenu() , the correct is closeSlideMenu()

    • @kevinblakely4384
      @kevinblakely4384 5 лет назад

      I LOVE YOU !! Thanks

    • @eddawry
      @eddawry 5 лет назад +1

      it's just a typography error

  • @ketankamble3772
    @ketankamble3772 5 лет назад

    background color apply nahi ho raha hai!1

  • @angladephil
    @angladephil 4 года назад

    Nice tuto, thank you !!!
    Just to say ... I'm stunned when reading the comments, by how many people ask for help AFTER copy/paste or typing the code ... and how few of them take some time to understand what they are doing and how code works ! Too bad, they don't LEARN from you, but just use your code and skills ...

  • @enyconkali898
    @enyconkali898 5 лет назад

    You tried to hide your mistake real good ;-)

  • @fuadarfan447
    @fuadarfan447 3 года назад

    👍

  • @saiqajutt7729
    @saiqajutt7729 3 года назад

    Nav Bar not working,,,

  • @ketankamble3772
    @ketankamble3772 5 лет назад

    background color is not applying!! why??

    • @ketankamble3772
      @ketankamble3772 5 лет назад

      when i gave the width of navbar then the background color is applying then not applying!!

    • @julianwilliamsofficial
      @julianwilliamsofficial 4 года назад

      Check your background colour in the css is background-color: #111;

  • @floded8897
    @floded8897 3 года назад +1

    You are using javascript aswell..

  • @ubaidsayyed2747
    @ubaidsayyed2747 4 года назад

    need source code

  • @pavankushwaha8273
    @pavankushwaha8273 4 года назад

    Gunga se