Animated Navigation Menu Bar using HTML CSS | Menu Hover Animation

Поделиться
HTML-код
  • Опубликовано: 3 окт 2019
  • Animated Navigation Menu Bar using HTML CSS | Menu Hover Animation
    Active Tab Hover Animation with Icons
    ➤ • Active Tab Hover Anima...
    Elastic Tab Click Animation with Icons
    ➤ • Elastic Tab Animation ...
    Download Codes From Here - drive.google.com/file/d/1OqTM...
    My Code Editor - • Best Text Editor for H...
    Facebook - / coding.np
    Instagram - / coding.np
    Music Credit:
    Track: Spektrem - Shine [NCS Release]
    Music provided by NoCopyrightSounds.
    ➤ Watch: • Spektrem - Shine | Pro...
    Track: TULE - Fearless pt.II (feat. Chris Linton) [NCS Release]
    Music provided by NoCopyrightSounds.
    ➤ Watch: • Lost Sky - Fearless pt...

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

  • @jackieleonardy1893
    @jackieleonardy1893 3 года назад +16

    Hi! how could the code run the nav .start-blog tag? While you only specify the start-home tag only. Or it's only will be used for further JS or JQuery purpose? Thank you!

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

      I didn't understand.. Can you tell me im details?

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

      he is saying that in html file you only define class as. start-home but in css file you use. start-home start-blog etc without defining them in html file

    • @CodingNepal
      @CodingNepal  3 года назад +12

      Sorry it was my mistake. Here is the actual CSS codes -
      @import url('fonts.googleapis.com/css?family=Open+Sans&display=swap');
      body {
      font-family: 'Open Sans', sans-serif;
      background: #2c3e50;
      }
      nav{
      position: relative;
      margin: 270px auto 0;
      width: 590px;
      height: 50px;
      background: #34495e;
      border-radius: 8px;
      font-size: 0;
      box-shadow: 0 2px 3px 0 rgba(0,0,0,.1);
      }
      nav a{
      font-size: 15px;
      text-transform: uppercase;
      color: white;
      text-decoration: none;
      line-height: 50px;
      position: relative;
      z-index: 1;
      display: inline-block;
      text-align: center;
      }
      nav .animation{
      position: absolute;
      height: 100%;
      /* height: 5px; */
      top: 0;
      /* bottom: 0; */
      z-index: 0;
      background: #1abc9c;
      border-radius: 8px;
      transition: all .5s ease 0s;
      }
      nav a:nth-child(1){
      width: 100px;
      }
      nav .start-home, a:nth-child(1):hover~.animation{
      width: 100px;
      left: 0;
      }
      nav a:nth-child(2){
      width: 110px;
      }
      nav a:nth-child(2):hover~.animation{
      width: 110px;
      left: 100px;
      }
      nav a:nth-child(3){
      width: 100px;
      }
      nav a:nth-child(3):hover~.animation{
      width: 100px;
      left: 210px;
      }
      nav a:nth-child(4){
      width: 160px;
      }
      nav a:nth-child(4):hover~.animation{
      width: 160px;
      left: 310px;
      }
      nav a:nth-child(5){
      width: 120px;
      }
      nav a:nth-child(5):hover~.animation{
      width: 120px;
      left: 470px;
      }

  • @-elektrostahl_1338
    @-elektrostahl_1338 Год назад +3

    This is actually what I was looking for - thank you !!!

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

    Perfect - the video I was looking for. Thankyou for uploading

  • @user-ip2zf6zz5n
    @user-ip2zf6zz5n 4 года назад +4

    oh my God thanks man you really just saved my life

  • @HuyTran-fl4ej
    @HuyTran-fl4ej 2 года назад

    Thank you, so beautiful

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

    brother u have stunning content in channel, i really like that stuff..

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

      Thank you 💙
      Follow us on insta - instagram.com/coding.np

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

    bro. I appreciate your work. Very nice. Thanks bro for the tutorial. Keep it up for more video.

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

    thanks bro for saving my time

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

    I really liked watching the video and your video solved my problem
    thanks

  • @stemp-freefire7158
    @stemp-freefire7158 2 года назад +1

    Your all tutorials are so helpful

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

    Very nice! Thanks! 🤗🤗🤗

  • @safiyakothiwale
    @safiyakothiwale 4 года назад +5

    I luv ur content ❤ u r very creative. keep it up. I think u should start teaching us. It will be very helpful.

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

    It is fantastic dude.....

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

      Thank you... Keep watching ❤️

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

    Very nice effect 👌👌👌 I like it !

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

      Thank you.. Keep supporting ❤️

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

    Amazing

  • @saragylden612
    @saragylden612 3 года назад +5

    Hello there! Love this tutorial. If I have only 4 tabs, the hover will dislocate? How do I change that? Can I maybe DM you. Currently working on my exam project, and would love this hover menu bar.

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

    Thank you .

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

    Nice

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

    Awesome 👍

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

    Superb...🥹🥹🥹 u .. r suprb teacher.... sir /ma'am.....🥹🥹🥹🥹🥹🥹🥹🥹 tq so much....

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

    Excellent 👌

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

    great Video!

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

    In the next video can you make a responsive website using html and css
    (and thanks for give me two hearts)

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

      Here is the video - ruclips.net/video/tcskp-ncN0I/видео.html

  • @ZaynMalik-dp7iv
    @ZaynMalik-dp7iv 3 года назад +1

    thanks buddy ❤️

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

    cool i love that

  • @muhammadakram1701
    @muhammadakram1701 13 дней назад

    Nice tutorial

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

    Thank you bro 🙏
    I've always got the best from you
    Thanks please

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

    I would like to ask you something, why is not closed??
    in the nav, I have and I can´t close it and the whole animation and css breaks

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

    Thnx!

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

    good

  • @user-iu6uc4vu4o
    @user-iu6uc4vu4o 4 года назад +1

    Great

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

    nice

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

    Great video! How do you make the highlight effect stay active when you click on a nav element? Thank you

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

      Use javascript for that.. I've made many videos on it.. Visit channel.

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

    Thanks😍😍😍

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

    Which software you have used to make such kind of video tutorial?

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

    wow

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

    that looks cool, i tried it out. however, there are a lot of repetitions with nth-child() and hover effects for each of them individually. is there any simpler way to achieve this with java script?

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

      I also face same issue did you find this problem solution please let me know

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

    can you make a video about your work

  • @AyushKumar-ep1nn
    @AyushKumar-ep1nn 4 года назад +1

    You are awesome coder if I use your coding it's ok for you

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

    how can I do this with a dynamic links option.... for example, I don't know if I would use 4 links or 10links-

  • @user-oz3ft2le7x
    @user-oz3ft2le7x 4 года назад +1

    SUPER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! SUPER!!!!!!!!!!!!!!!! SUPER!!!!!!!!!

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

    can someone explain me the "start-home" is used for what

  • @nigarmamedova5828
    @nigarmamedova5828 11 месяцев назад +1

    How to do the same in case of active element state?

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

    Inline block aur flex me jya difference h aur inline block kab kab use krna hota h

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

    thanks

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

      You're welcome... Stay tuned 😁

    •  3 года назад

      @@CodingNepal Thank you, I've been watching from Turkey got me very useful video

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

    How about something dynamic? Because majority of cases are dynamic content, thats why static width not always the solution.

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

      If you have some knowledge of css then you can put dynamic width or static width according your desire.

  • @0xTh3Ruler
    @0xTh3Ruler 2 года назад

    Is this a CSS tutorial or a music video?

  • @playstasio6685
    @playstasio6685 2 года назад +6

    how can i keep the menu highlighted when it's active?

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

    how can i make it to go back to the current page one i take the mouse pointer out

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

      According to this design, the active page is home page and when you hover on other menu the animation slides smoothly and it go to default active tab when the pointer out. I hope you got it.

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

    Hello, how can I do that when I restart the web, the colored button start in "contact", and not un "Home"?
    New sub 😄

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

      use Javascript or JQuery..

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

      @@CodingNepal IT is posible to do it with css?

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

      @@ElSuperNOOB No there is no page reload event listener in CSS.

  • @GHOST-dg5tk
    @GHOST-dg5tk 3 года назад +2

    why does the underline return back to its starting position, can you change it?

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

      you must remove the .start-home, but you'll have the selector render only when hovering something

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

    I only see "start_home," huhu can u help me know it?

  • @pechhon1273
    @pechhon1273 4 дня назад

    Hello brother ! Can you tell me how to make this animation on drop-down? I do like that but not working.

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

    advanced tutorial

  • @user-jr9tk3ph5m
    @user-jr9tk3ph5m 2 месяца назад

    why didn't you use flex for your nav?

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

    the bottom 0, or second animation. What does it call?

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

    @CodingNepal could you please tell me how to active this in the last child??

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

      You need to do some change in css codes. Contact on me Instagram. I'll do for you.

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

    nav{
    position: relative;
    margin: 270px auto 0;
    width: 590px;
    height: 50px;
    background-color: #34495e;
    border-radius: 8px;
    font-size: 0;
    box-shadow: 0 2px 3px 0 rgba(0,0,0,.1);
    }
    In this above code why did you write ' font-size:0 ' can anyone explain

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

      It's mean if the nav has taken any font-size then make it 0; It's not required and you don't need to put this line.

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

    Brother I write the whole code and try to make same to understand his working for practice mode but I realised some code is missing of HTML file in this video can you please share his HTML. Code so I can check and correct my mistakes.

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

      Source files link is in the description.

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

    good but it isn't responsive it is just static values

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

    someone know how to add clear custom css to elementor?

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

    brothur could you please make a voice over in this tutorial? please that would be very much helpful.
    i want to know , { :hover~.animation} "~" why this sign? can you please explain
    love from Bangladesh.

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

      This article helps you - techbrij.com/css-selector-adjacent-child-sibling

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

      @@CodingNepal ok , and could you please tell me how to active this in the last child??

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

    how does it behave in responsive view?

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

    why u used start-home class? IDK For what?

  • @esf-studio-main
    @esf-studio-main Год назад

    Those css are hardcoded and will not scale if we add another a tag in html

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

    How can we put a tab on top ?

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

    how to hyperlink on section html?

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

    that will work just with these tabs , but if you add another tab it will not work .

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

    what is the url in style .css

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

      This url is used for font-family.. You can get code files from here drive.google.com/file/d/1aURPkqJP6ASxBsLHozPEdn3oYJPCetMD/view?usp=drivesdk

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

    i cant find the source code

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

    please how to make it responsive !?

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

    what if a link text is longer than 100px

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

    What is the name of the editor

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

    i couldn't find the code. Someone help me pls

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

      www.codingnepalweb.com/2020/06/active-tab-hover-animation-with-icons.html

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

    can i use your code?

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

    Do not show the @import url full name.

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

    Hi ,I need code file plz . 🙂

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

    Source Code ? ?

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

    daju malai please help gardinus tapai ko number dinnu hoss ma wattsapp garxu tapailai

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

    Nice