Animated Navigation Menu Bar using HTML CSS | Menu Hover Animation

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ต.ค. 2024
  • 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.c...
    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...

ความคิดเห็น • 136

  • @jackieleonardy1893
    @jackieleonardy1893 4 ปีที่แล้ว +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  4 ปีที่แล้ว +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 ปีที่แล้ว +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;
      }

  • @-elektrostahl_1338
    @-elektrostahl_1338 ปีที่แล้ว +3

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

  • @adobetrainingplatform3577
    @adobetrainingplatform3577 3 ปีที่แล้ว +1

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

  • @stemp-freefire7158
    @stemp-freefire7158 3 ปีที่แล้ว +1

    Your all tutorials are so helpful

    • @CodingNepal
      @CodingNepal  3 ปีที่แล้ว +2

      Glad you like them!

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

  • @АрманАлимханов-ф8д
    @АрманАлимханов-ф8д 4 ปีที่แล้ว +4

    oh my God thanks man you really just saved my life

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

  • @InspireHour
    @InspireHour 2 ปีที่แล้ว

    thanks bro for saving my time

  • @playstasio6685
    @playstasio6685 2 ปีที่แล้ว +6

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

  • @khushidubeypoetry
    @khushidubeypoetry ปีที่แล้ว

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

  • @housepjays
    @housepjays 3 ปีที่แล้ว +5

    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.

  • @TruthPrevails_
    @TruthPrevails_ ปีที่แล้ว

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

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

    • @CodingNepal
      @CodingNepal  3 ปีที่แล้ว

      You're welcome bro 💙

  • @samiyaakter8457
    @samiyaakter8457 2 ปีที่แล้ว

    Thank you .

  • @developernaim7869
    @developernaim7869 3 ปีที่แล้ว +2

    Awesome 👍

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

  • @CodingUG
    @CodingUG 2 ปีที่แล้ว +2

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

  • @HuyTran-fl4ej
    @HuyTran-fl4ej 2 ปีที่แล้ว

    Thank you, so beautiful

  • @thehighlightedone
    @thehighlightedone 3 ปีที่แล้ว +2

    can you make a video about your work

  • @vaibhavkhushlani3836
    @vaibhavkhushlani3836 ปีที่แล้ว

    Amazing

  • @Genusik
    @Genusik ปีที่แล้ว

    Thnx!

  • @mohsinsayyad6347
    @mohsinsayyad6347 4 ปีที่แล้ว +1

    Excellent 👌

  • @altufaltu4103
    @altufaltu4103 4 ปีที่แล้ว +2

    cool i love that

  • @ayepwintphyu9670
    @ayepwintphyu9670 3 ปีที่แล้ว +1

    Thanks😍😍😍

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

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

    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 - th-cam.com/video/tcskp-ncN0I/w-d-xo.html

  • @muhammadakram1701
    @muhammadakram1701 4 หลายเดือนก่อน

    Nice tutorial

  • @dangerzone-136
    @dangerzone-136 2 ปีที่แล้ว

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

  • @ZaynMalik-dp7iv
    @ZaynMalik-dp7iv 3 ปีที่แล้ว +1

    thanks buddy ❤️

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

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

  • @sanketsingh5555
    @sanketsingh5555 2 ปีที่แล้ว

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

  • @krishcm3016
    @krishcm3016 4 ปีที่แล้ว +1

    Very nice! Thanks! 🤗🤗🤗

  • @muratgünhan
    @muratgünhan 4 ปีที่แล้ว +1

    thanks

    • @CodingNepal
      @CodingNepal  4 ปีที่แล้ว

      You're welcome... Stay tuned 😁

    • @muratgünhan
      @muratgünhan 4 ปีที่แล้ว

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

  • @housseineh7677
    @housseineh7677 5 ปีที่แล้ว +1

    Very nice effect 👌👌👌 I like it !

    • @CodingNepal
      @CodingNepal  5 ปีที่แล้ว

      Thank you.. Keep supporting ❤️

  • @gamingtiktok9616
    @gamingtiktok9616 5 ปีที่แล้ว +1

    Nice

  • @turniodev
    @turniodev 3 ปีที่แล้ว +1

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

  • @user-iu6uc4vu4o
    @user-iu6uc4vu4o 5 ปีที่แล้ว +1

    Great

  • @МаксимКрутов-е8б
    @МаксимКрутов-е8б 4 ปีที่แล้ว +1

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

  • @AyushKumar-ep1nn
    @AyushKumar-ep1nn 4 ปีที่แล้ว +1

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

    • @CodingNepal
      @CodingNepal  4 ปีที่แล้ว

      Yes you can use my code.

  • @dominikladner3161
    @dominikladner3161 4 ปีที่แล้ว +2

    great Video!

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

  • @pechhon1273
    @pechhon1273 4 หลายเดือนก่อน

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

  • @syediqbalahmed3176
    @syediqbalahmed3176 4 ปีที่แล้ว +1

    good

  • @0xTh3Ruler
    @0xTh3Ruler 3 ปีที่แล้ว

    Is this a CSS tutorial or a music video?

  • @nigarmamedova5828
    @nigarmamedova5828 ปีที่แล้ว +1

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

  • @baijidhossain1541
    @baijidhossain1541 4 ปีที่แล้ว +1

    wow

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

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

  • @java7362
    @java7362 2 ปีที่แล้ว

    nice

  • @Mohammad-f8y
    @Mohammad-f8y 7 หลายเดือนก่อน

    why didn't you use flex for your nav?

  • @vakkoww8635
    @vakkoww8635 หลายเดือนก่อน

    Is it possible to make this responsive ?

  • @thezvid
    @thezvid 3 ปีที่แล้ว +2

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

    • @CodingNepal
      @CodingNepal  3 ปีที่แล้ว

      Yes it's not responsive.

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

  • @minthantkyaw1579
    @minthantkyaw1579 2 ปีที่แล้ว

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

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

  • @LutfiRamadhan
    @LutfiRamadhan 4 ปีที่แล้ว +1

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

    • @CodingNepal
      @CodingNepal  4 ปีที่แล้ว

      Please mention time.

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

  • @bulkbuster553
    @bulkbuster553 3 หลายเดือนก่อน +1

    Hover is not at all working

    • @bulkbuster553
      @bulkbuster553 3 หลายเดือนก่อน

      Help me pleae3

  • @ahmedbelloula9268
    @ahmedbelloula9268 3 ปีที่แล้ว

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

  • @joshuaubara9014
    @joshuaubara9014 3 ปีที่แล้ว +1

    What is the name of the editor

  • @pitagora8696
    @pitagora8696 4 ปีที่แล้ว +1

    how does it behave in responsive view?

    • @CodingNepal
      @CodingNepal  4 ปีที่แล้ว

      It's not responsive.

  • @adal7769
    @adal7769 4 ปีที่แล้ว +1

    i cant find the source code

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

  • @esf-studio-main
    @esf-studio-main ปีที่แล้ว

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

  • @Pilosofia
    @Pilosofia 3 ปีที่แล้ว

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

  • @trapmask2978
    @trapmask2978 ปีที่แล้ว

    how to hyperlink on section html?

  • @feel_the_beats698
    @feel_the_beats698 ปีที่แล้ว

    How can we put a tab on top ?

  • @Scarecrow9298
    @Scarecrow9298 3 ปีที่แล้ว

    what if a link text is longer than 100px

  • @moviemate7107
    @moviemate7107 4 ปีที่แล้ว +1

    can i use your code?

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

  • @rekan_98
    @rekan_98 3 ปีที่แล้ว

    please how to make it responsive !?

  • @glade3934
    @glade3934 2 ปีที่แล้ว

    someone know how to add clear custom css to elementor?

  • @soyaiburrahman3806
    @soyaiburrahman3806 3 ปีที่แล้ว

    advanced tutorial

  • @khansolution2092
    @khansolution2092 2 ปีที่แล้ว

    Do not show the @import url full name.

  • @dflz
    @dflz 4 ปีที่แล้ว +1

    Hi ,I need code file plz . 🙂

    • @CodingNepal
      @CodingNepal  4 ปีที่แล้ว

      Contact on me Instagram

  • @Blazikan78
    @Blazikan78 3 ปีที่แล้ว

    Source Code ? ?

  • @wrizuuchhetri3609
    @wrizuuchhetri3609 4 ปีที่แล้ว +1

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

    • @CodingNepal
      @CodingNepal  4 ปีที่แล้ว

      I do not use whatsapp.

  • @gauravmisal4610
    @gauravmisal4610 2 ปีที่แล้ว

    Nice