Animated Navigation Menu Bar using HTML CSS | Menu Hover Animation

Поділитися
Вставка
  • Опубліковано 22 січ 2025

КОМЕНТАРІ • 139

  • @jackieleonardy1893
    @jackieleonardy1893 4 роки тому +17

    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  4 роки тому +1

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

    • @amaan6017
      @amaan6017 4 роки тому +2

      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  4 роки тому +14

      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;
      }

    • @santhirandilaiksana3525
      @santhirandilaiksana3525 3 місяці тому

  • @-elektrostahl_1338
    @-elektrostahl_1338 2 роки тому +3

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

  • @АрманАлимханов-ф8д
    @АрманАлимханов-ф8д 4 роки тому +4

    oh my God thanks man you really just saved my life

  • @AveKhlif-xw4pl
    @AveKhlif-xw4pl 2 місяці тому

    You are the best, I support you

  • @stemp-freefire7158
    @stemp-freefire7158 3 роки тому +1

    Your all tutorials are so helpful

  • @TruthPrevails_
    @TruthPrevails_ Рік тому

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

  • @adobetrainingplatform3577
    @adobetrainingplatform3577 4 роки тому +1

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

  • @thanigaivelan8394
    @thanigaivelan8394 5 років тому +3

    It is fantastic dude.....

    • @CodingNepal
      @CodingNepal  5 років тому

      Thank you... Keep watching ❤️

  • @Skyraxk
    @Skyraxk 4 роки тому +1

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

  • @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

  • @developernaim7869
    @developernaim7869 4 роки тому +2

    Awesome 👍

  • @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.

  • @housseineh7677
    @housseineh7677 5 років тому +1

    Very nice effect 👌👌👌 I like it !

    • @CodingNepal
      @CodingNepal  5 років тому

      Thank you.. Keep supporting ❤️

  • @playstasio6685
    @playstasio6685 3 роки тому +6

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

  • @krishcm3016
    @krishcm3016 5 років тому +1

    Very nice! Thanks! 🤗🤗🤗

  • @thehighlightedone
    @thehighlightedone 4 роки тому +2

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

    • @CodingNepal
      @CodingNepal  4 роки тому

      Here is the video - ua-cam.com/video/tcskp-ncN0I/v-deo.html

  • @mohsinsayyad6347
    @mohsinsayyad6347 4 роки тому +1

    Excellent 👌

  • @InspireHour
    @InspireHour 2 роки тому

    thanks bro for saving my time

  • @dominikladner3161
    @dominikladner3161 5 років тому +2

    great Video!

  • @khushidubeypoetry
    @khushidubeypoetry Рік тому

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

  • @ojvni
    @ojvni 3 роки тому +2

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

  • @saragylden612
    @saragylden612 4 роки тому +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.

  • @ayepwintphyu9670
    @ayepwintphyu9670 3 роки тому +1

    Thanks😍😍😍

  • @HuyTran-fl4ej
    @HuyTran-fl4ej 2 роки тому

    Thank you, so beautiful

  • @ZaynMalik-dp7iv
    @ZaynMalik-dp7iv 4 роки тому +1

    thanks buddy ❤️

  • @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 3 роки тому +1

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

  • @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

  • @altufaltu4103
    @altufaltu4103 4 роки тому +2

    cool i love that

  • @juancamilocampotangarife7432

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

  • @nigarmamedova5828
    @nigarmamedova5828 Рік тому +1

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

  • @abhishekmohanty232
    @abhishekmohanty232 4 роки тому +1

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

    • @CodingNepal
      @CodingNepal  4 роки тому +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.

  • @housepjays
    @housepjays 4 роки тому +5

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

    • @CodingNepal
      @CodingNepal  4 роки тому +2

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

  • @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 2 роки тому +1

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

  • @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.

  • @vaibhavkhushlani3836
    @vaibhavkhushlani3836 2 роки тому

    Amazing

  • @kam1701-kk
    @kam1701-kk 8 місяців тому

    Nice tutorial

  • @AyushKumar-ep1nn
    @AyushKumar-ep1nn 4 роки тому +1

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

  • @sanketsingh5555
    @sanketsingh5555 2 роки тому

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

  • @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.

  • @samiyaaktermimvlog
    @samiyaaktermimvlog 3 роки тому

    Thank you .

  • @gamingtiktok9616
    @gamingtiktok9616 5 років тому +1

    Nice

  • @vakkoww8635
    @vakkoww8635 5 місяців тому

    Is it possible to make this responsive ?

  • @МаксимКрутов-е8б
    @МаксимКрутов-е8б 5 років тому +1

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

  • @pechhon1273
    @pechhon1273 7 місяців тому

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

  • @LutfiRamadhan
    @LutfiRamadhan 4 роки тому +1

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

  • @thehighlightedone
    @thehighlightedone 4 роки тому +2

    what is the url in style .css

    • @CodingNepal
      @CodingNepal  4 роки тому

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

  • @pitagora8696
    @pitagora8696 4 роки тому +1

    how does it behave in responsive view?

  • @thehighlightedone
    @thehighlightedone 4 роки тому +2

    can you make a video about your work

  • @user-iu6uc4vu4o
    @user-iu6uc4vu4o 5 років тому +1

    Great

  • @ElSuperNOOB
    @ElSuperNOOB 5 років тому +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  5 років тому +1

      use Javascript or JQuery..

    • @ElSuperNOOB
      @ElSuperNOOB 5 років тому

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

    • @CodingNepal
      @CodingNepal  5 років тому

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

  • @dangerzone-136
    @dangerzone-136 2 роки тому

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

  • @ankushsonone8433
    @ankushsonone8433 3 роки тому +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  3 роки тому +1

      Source files link is in the description.

  • @Genusik
    @Genusik 2 роки тому

    Thnx!

  • @Mohammad-f8y
    @Mohammad-f8y 10 місяців тому

    why didn't you use flex for your nav?

  • @BuzzLineMedia
    @BuzzLineMedia 4 роки тому +1

    thanks

    • @CodingNepal
      @CodingNepal  4 роки тому

      You're welcome... Stay tuned 😁

    • @BuzzLineMedia
      @BuzzLineMedia 4 роки тому

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

  • @ahmedbelloula9268
    @ahmedbelloula9268 3 роки тому

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

  • @trapmask2978
    @trapmask2978 Рік тому

    how to hyperlink on section html?

  • @mohammadakram599
    @mohammadakram599 4 роки тому +1

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

    • @CodingNepal
      @CodingNepal  4 роки тому

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

  • @adal7769
    @adal7769 4 роки тому +1

    i cant find the source code

  • @thezvid
    @thezvid 4 роки тому +2

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

  • @feel_the_beats698
    @feel_the_beats698 2 роки тому

    How can we put a tab on top ?

  • @0xTh3Ruler
    @0xTh3Ruler 3 роки тому

    Is this a CSS tutorial or a music video?

  • @syediqbalahmed3176
    @syediqbalahmed3176 5 років тому +1

    good

  • @glade3934
    @glade3934 3 роки тому

    someone know how to add clear custom css to elementor?

  • @esf-studio-main
    @esf-studio-main Рік тому

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

  • @minthantkyaw1579
    @minthantkyaw1579 2 роки тому

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

  • @joshuaubara9014
    @joshuaubara9014 3 роки тому +1

    What is the name of the editor

  • @bulkbuster553
    @bulkbuster553 7 місяців тому +1

    Hover is not at all working

  • @java7362
    @java7362 2 роки тому

    nice

  • @mohithguptakorangi1766
    @mohithguptakorangi1766 4 роки тому +1

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

    • @PudineHisa
      @PudineHisa 4 роки тому

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

  • @Pilosofia
    @Pilosofia 3 роки тому

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

  • @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??

  • @Scarecrow9298
    @Scarecrow9298 3 роки тому

    what if a link text is longer than 100px

  • @baijidhossain1541
    @baijidhossain1541 4 роки тому +1

    wow

  • @rekan_98
    @rekan_98 3 роки тому

    please how to make it responsive !?

  • @dflz
    @dflz 4 роки тому +1

    Hi ,I need code file plz . 🙂

  • @khansolution2092
    @khansolution2092 3 роки тому

    Do not show the @import url full name.

  • @moviemate7107
    @moviemate7107 4 роки тому +1

    can i use your code?

  • @wrizuuchhetri3609
    @wrizuuchhetri3609 4 роки тому +1

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

  • @Blazikan78
    @Blazikan78 3 роки тому

    Source Code ? ?

  • @soyaiburrahman3806
    @soyaiburrahman3806 3 роки тому

    advanced tutorial

  • @alialiev4667
    @alialiev4667 2 місяці тому

    Terrible code

  • @gauravmisal4610
    @gauravmisal4610 2 роки тому

    Nice