Animated Navigation Menu Bar using HTML CSS | Menu Hover Animation

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024

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

  • @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 2 месяца назад

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

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

  • @AveKhlif-xw4pl
    @AveKhlif-xw4pl Месяц назад

    You are the best, I support you

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

    Your all tutorials are so helpful

  • @АрманАлимханов-ф8д
    @АрманАлимханов-ф8д 4 года назад +4

    oh my God thanks man you really just saved my life

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

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

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

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

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

    It is fantastic dude.....

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

      Thank you... Keep watching ❤️

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

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

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

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

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

    Very nice! Thanks! 🤗🤗🤗

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

    Very nice effect 👌👌👌 I like it !

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

      Thank you.. Keep supporting ❤️

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

    thanks bro for saving my time

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

    Awesome 👍

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

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

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

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

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

    Thanks😍😍😍

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

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

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

    Excellent 👌

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

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

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

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

    thanks buddy ❤️

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

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

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

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

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

    Thank you, so beautiful

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

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

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

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

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

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

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

    can you make a video about your work

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

  • @vakkoww8635
    @vakkoww8635 4 месяца назад

    Is it possible to make this responsive ?

  • @dangerzone-136
    @dangerzone-136 2 года назад

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    i cant find the source code

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

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

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

    great Video!

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

    how does it behave in responsive view?

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

    cool i love that

  • @Mohammad-f8y
    @Mohammad-f8y 9 месяцев назад

    why didn't you use flex for your nav?

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

    Thank you .

  • @muhammadakram1701
    @muhammadakram1701 7 месяцев назад

    Nice tutorial

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

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

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

    Is this a CSS tutorial or a music video?

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

    What is the name of the editor

  • @bulkbuster553
    @bulkbuster553 6 месяцев назад +1

    Hover is not at all working

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

    How can we put a tab on top ?

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

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

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

    how to hyperlink on section html?

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

    thanks

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

      You're welcome... Stay tuned 😁

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

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

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

    Thnx!

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

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

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

    someone know how to add clear custom css to elementor?

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

    Amazing

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

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

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

    what if a link text is longer than 100px

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

    please how to make it responsive !?

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

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

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

    can i use your code?

  • @user-iu6uc4vu4o
    @user-iu6uc4vu4o 5 лет назад +1

    Great

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

    Hi ,I need code file plz . 🙂

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

    Nice

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

    Do not show the @import url full name.

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

    good

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

    nice

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

    Source Code ? ?

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

    advanced tutorial

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

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

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

    wow

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

    Terrible code

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

    Nice