Slide Out Navigation | HTML, CSS & JavaScript

Поделиться
HTML-код
  • Опубликовано: 21 окт 2017
  • This Tutorial Gives You The Basic Idea How You Can Create Your Own Custom Sliding Navigation By Writing Only Couple Of Lines JavaScript Code !!
    --------------- Social Media ---------------
    Facebook : / codegridweb
    Instagram : / codegridweb
    Twitter : / codegridweb
    Thank You For Watching !
    Music :
    LAIRE - Final Coming : • [Chillstep] LAIRE - Fi...
    Credits :
    LAIRE :
    / laire
    / laire_music
    / lairemusic

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

  • @braien8158
    @braien8158 2 года назад +2

    Thanks! I was searching for tutorials of it and all the others were too complicated and would need bigger changes on my css. Keep doing your great work!

  • @brandonikjoo
    @brandonikjoo 5 лет назад +7

    Thanks a lot for the post. Your posts are very helpful!

  • @nomdplume6166
    @nomdplume6166 5 лет назад +5

    Excellent video. Thanks for the consistently great work.

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

    workedd thanks dude

  • @jahongirbektemirov6516
    @jahongirbektemirov6516 3 года назад +2

    Thanks a lot. I found it.

  • @slr4456
    @slr4456 3 года назад +2

    So if I want to put a picture as the three bar menu instead, I just define the width and height of the btn-toggle and set the image as a background-image on css?

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

    Nice short and simple 👏

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

    Many thanks

  • @ArtOfFun
    @ArtOfFun 5 лет назад +7

    *Thx for link in description!*
    Yes...

  • @techblog1491
    @techblog1491 3 года назад +53

    Codes:

    * {
    margin: 0px;
    padding: 0px;
    }
    #sidebar {
    position: absolute;
    width: 300px;
    height: 100%;
    background: #000;
    left: -300px;
    transition: .4s;
    }
    #sidebar ul li {
    list-style: none;
    color: #fff;
    font-size: 20px;
    padding: 26px 24px;
    }
    #sidebar .toggle-btn {
    position: absolute;
    top: 30px;
    left: 330px;
    }
    .toggle-btn span {
    width: 45px;
    height: 4px;
    background: #000;
    display: block;
    margin-top: 4px;
    }
    #sidebar.active {
    left: 0;
    }





    Home
    Work
    About
    Contact

    function show() {
    document.getElementById('sidebar').classList.toggle('active');
    }

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

      thanks for saving my time dude💗

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

      What is the problem when it saids show is not defined

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

      Run nhi ho rhi notepad++ sr

    • @darkagent9457
      @darkagent9457 Год назад +3

      Try this, it is the fixed version:


      * {
      margin: 0px;
      padding: 0px;
      }

      #sidebar {
      position: absolute;
      width: 300px;
      height: 100%;
      background: #000;
      left: -300px;
      transition: .4s;
      }

      #sidebar ul li {
      list-style: none;
      color: #fff;
      font-size: 20px;
      padding: 26px 24px;
      }

      #sidebar .toggle-btn {
      position: absolute;
      top: 30px;
      left: 330px;
      }

      .toggle-btn span {
      width: 45px;
      height: 4px;
      background: #000;
      display: block;
      margin-top: 4px;
      }

      #sidebar.active {
      left: 0;
      }











      Home
      Work
      About
      Contact



      function show() {
      document.getElementById('sidebar').classList.toggle('active');
      }


      *Not to take his credits*

    • @jayraldp.arquisola2034
      @jayraldp.arquisola2034 Год назад

      thanks man

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

    Brilliant

  • @adityakalra768
    @adityakalra768 5 лет назад +3

    Very nice video but which IDE are you using here

  • @7073shea
    @7073shea Год назад

    Thank you!

  • @adeola.
    @adeola. 4 года назад

    Thanks 😊

  • @OMARALI-fs2nw
    @OMARALI-fs2nw 5 лет назад +1

    Thanks

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

    Nice👌

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

    great video bruh

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

    Which IDE you used?

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

    is it possible that the button to 'extend out' remains in the same place?

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

    My JS won't work, do I need another package than "script" (atom)

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

    But what about when we scroll the body? wouldn't menu will stick position? we need follow menu div while we scroll on view.

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

    Tnx

  • @duxteh2
    @duxteh2 2 месяца назад

    code doesnt work, the button thingy wont open my slide menu, ive written everything as it is and TRIPPLE checked EVERYTHING. idk whats up but if anyone can help lmk

  • @awszr
    @awszr 3 года назад +3

    it works but the scroll bar never hides . the whole block goes to the side and the scrollbar appears what to do?

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

      Really! did you can find out how hides it?

    • @user-sl5ft9md3m
      @user-sl5ft9md3m 3 года назад

      Change the Following
      on the #sidebar, change position to *position:fixed;* and add a line * overflow-x:hidden; *
      on the #sidebar.active add a line *position:absolute*
      This is a fix on the current code but there are more efficient ways to create menus like this

  • @Home_films_
    @Home_films_ 6 месяцев назад

    my sidebar come only when i press it. how i can solve tis problem?

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

    Can't be download. ...
    M a Student and can't afford net.. 😕
    But you. ...😥
    . Can't understand...

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

    code me dont working

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

    Why ain't my js working

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

    I want to find a video where it comes from the TOP of the screen

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

      Hey I am also looking for an example of a vertical slide menu. Did you already found a solution?

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

      You can do it this code just change the transform property accordingly. Also here’s a piece of advice - if you want to get good at this don’t just copy code. Once you complete tutorial project mess around with it and make it how you want it. It’s the only way you’ll get good using this format. YW

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

    three dots is not showing . what to do????

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

      Same here also

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

      @@freedomgabriel It will probably be your class & ID element in html. It needs to be id for the sidebar and class for the toggle-btn

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

    pls use human frndly music and volume also

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

    How come my's not workiing dude there is something missing?

  • @marimbayavatsonga
    @marimbayavatsonga 10 месяцев назад

    Thanks