Cool CSS Menu Hover Effects - Using :before and :after pseudo element - Pure CSS Tutorial

Please LIKE our Facebook page for daily updates...
/ online-tutorial-html-c...
Music Name : Spring In My Step by Silent Partner from KZread Audio Library
Music URL : • Spring In My Step - Si...

Пікірлер: 56

  • @janitholagama4695
    @janitholagama46955 жыл бұрын

    Cool, I learn lot about after, before ans scale transform. Thanks for great tutorial

  • @udaykulkarni5639
    @udaykulkarni56394 жыл бұрын

    Dude!!! Your CSS skills are on whole new level

  • @CnC_pro

    @CnC_pro

    Жыл бұрын

    great

  • @developerenn
    @developerenn3 жыл бұрын

    thanks, just what I needed.

  • @berliandro
    @berliandro6 жыл бұрын

    You are officially my teacher

  • @kingsleyemeka2136
    @kingsleyemeka21362 жыл бұрын

    I'm subscribing straight away

  • @eypbal
    @eypbal6 жыл бұрын

    Perfect..

  • @T779298RA1
    @T779298RA1 Жыл бұрын

    Helped me figure out I need to add transition to the original item rather than apply some :after styling, thanks!

  • @leolima01
    @leolima016 жыл бұрын

    Great!!!!

  • @CodeWithAli
    @CodeWithAli5 жыл бұрын

    Looks cool bro.

  • @Santoshumnekar
    @Santoshumnekar6 жыл бұрын

    Attractive Nav ...Any animation or any page make always responsive

  • @Jamesis07
    @Jamesis07 Жыл бұрын

    Thanks bro you are smart man

  • @md.saadmangalib3084
    @md.saadmangalib30842 жыл бұрын

    Awesome tutorial

  • @appleipad9226
    @appleipad92266 жыл бұрын

    Super 👍🏿👏🏿

  • @itemssk
    @itemssk5 жыл бұрын

    Jhakashhh

  • @pablofac1374
    @pablofac13746 жыл бұрын

    Amazing

  • @technicaltips6563
    @technicaltips65636 жыл бұрын

    Cool

  • @mandro16
    @mandro16 Жыл бұрын

    Men you save me thx bro

  • @mdfazar2091
    @mdfazar20915 жыл бұрын

    Fantastic

  • @AllenMarsam
    @AllenMarsam5 жыл бұрын

    awesome

  • @abdulazizoqilov7781
    @abdulazizoqilov77812 жыл бұрын

    Thanks bro

  • @wistongramirez7795
    @wistongramirez7795 Жыл бұрын

    Hello, I have a question because there are elements to which you position without applying the properties of top, left, right, bottom?

  • @csstricks6943
    @csstricks69435 жыл бұрын

    thx you

  • @codewithcoffee1930
    @codewithcoffee19303 жыл бұрын

    Very nice

  • @ajmaljoiya6006
    @ajmaljoiya60064 жыл бұрын

    Kamal .

  • @kandi5754
    @kandi57545 жыл бұрын

    Thanks a lot for all your videos.👍👍👍👍👍👍👍👍👍

  • @idlike
    @idlike2 жыл бұрын

    نايس

  • @nightcoreheaven8351
    @nightcoreheaven83515 жыл бұрын

    CSS CODE: body { margin: 0; padding:0; font-family: sans-serif; background: #151519; } ul { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 0; display: flex; } ul li { list-style: none; } ul li a { position: relative; display: block; padding: 10px 20px; margin: 20px 0; text-decoration: none; text-transform: uppercase; color: #262626; font-weight: bold; transition: .5s; } ul li a:hover { color: #fff; } ul li a:before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-top: 1px solid #000; border-bottom: 1px solid #000; transform: scaleY(2); opacity: 0; transition: .5s; z-index: -1; } ul li a:hover:before { transform: scaleY(1.2); opacity: 1; } ul li a:after { content: ''; position: absolute; top: 1px; left: 0; width: 100%; height: 100%; background: #000; transform: scale(0); transition: .5s; z-index: -1; } ul li a:hover:after { transform: scale(1); } ul li a { color: white; margin-left: 0; } HTML CODE: (I included other stuffs btw) Title Of your Tab Here Text Text Text **NOTE** You can add or lesser the links you want to go or write in.

  • 5 жыл бұрын

    I've been looking for the codes. Thank you so much. We don't have to rewrite if the friend who adds the video writes the css codes to the comments

  • @sahoobhainastudio4906
    @sahoobhainastudio49063 жыл бұрын

    ❤️❤️❤️❤️❤️

  • @sivamuruganandamj7007
    @sivamuruganandamj70073 жыл бұрын

    Plz give some explanation... Anyway awesome video...

  • @umarsandaahmed9160
    @umarsandaahmed91605 жыл бұрын

    Pls is you code is not clear to read can you project ot big size thnx

  • @muralikrishna7249
    @muralikrishna72493 жыл бұрын

    But, it would be so better if you place those 2 screens side by side, So that we could watch the changes too....please consider this!

  • @yotsusan_machi
    @yotsusan_machi2 жыл бұрын

    oh may gah

  • @kainanguerra5245
    @kainanguerra52452 жыл бұрын

    do i need some extensions??

  • @bipulsantosh648
    @bipulsantosh6485 жыл бұрын

    Sir plzzz explain us it would be much better

  • @brunobruncher8237
    @brunobruncher82373 жыл бұрын

    Ctrl+Shift+D copy string in Siblime Text 3 and Alt+Shift+Arrow Up copy string in Visual Studio Code

  • @Its_Pritam_
    @Its_Pritam_5 жыл бұрын

    So can anyone tell me what is z-index? And why that text colored changed after using z-index?

  • @aaronspurgeon8194

    @aaronspurgeon8194

    5 жыл бұрын

    z-index is the stack order, he put -1 so that the text appears in front of the black background because the text has a higher stack number than the :before and :after

  • @azeemsaleem2044
    @azeemsaleem20444 жыл бұрын

    SIR BEFORE OR AFTEER KY SATH SAI KHELA HY GREAT SIR KAMAL HYYYYYYYYYYYYY

  • @irinabella4572
    @irinabella45722 жыл бұрын

    Very good thanks for this tutorial But this exemple is not respensive

  • @anisdhouieb9918
    @anisdhouieb99185 жыл бұрын

    I like your channel, but I hate this specific music, it's everywhere on youtube

  • @shahzaib715
    @shahzaib7152 жыл бұрын

    So nice bro how you can remember these properties can help or you written on the paper?

  • @Moamal-Alaa

    @Moamal-Alaa

    2 жыл бұрын

    you have to take a course for CSS language so you can study this and become pro before that you must know about HTML language its simple you can study it in a few weeks.

  • @shahzaib715

    @shahzaib715

    2 жыл бұрын

    @@Moamal-Alaa Thanks bro I have solid grip on HTML and CSS but I'm talking about how these guy's can remember all properties😎

  • @Moamal-Alaa

    @Moamal-Alaa

    2 жыл бұрын

    @@shahzaib715 with a lot of practice 😅

  • @oliveryoo9963
    @oliveryoo99636 жыл бұрын

    This music... 🙄

  • @kapilmehta5829
    @kapilmehta58295 жыл бұрын

    this transform property with scale doesnt work.it changes the width of border.. also how both border added in psedo of before..one has to be in pseudo after to work. so nav ul li a:before{ content:''; width:100%; background:#000; position:absolute; top:-50%; left:0; border-top:1px solid #000; opacity:0; transition: .5s; } nav ul li a:hover:before{ transform: translate(0,10px); opacity:1; } nav ul li a:after{ content:''; width:100%; background:#000; position:absolute; top:150%; left:0; border-bottom:1px solid #000; opacity:0; transition: .5s; } nav ul li a:hover:after{ transform: translate(0,-10px); opacity:1; this got me to the first result after lots of hit and trial

  • @gazagxrlx2974

    @gazagxrlx2974

    5 жыл бұрын

    What does nav before and after do?

  • @takibahmed8859

    @takibahmed8859

    3 жыл бұрын

    You don't need to use translate, just use height:100%;

  • @sunwavesonmars7588
    @sunwavesonmars75883 жыл бұрын

    i dont get the spacing u have . weird

  • @raffaelenicolapiazzolla3927
    @raffaelenicolapiazzolla39276 жыл бұрын

    Can u please not choose horrible music for your tutorial?

  • @hypergloom600

    @hypergloom600

    6 жыл бұрын

    Raffaele Piazzolla You can mute the video, then play your own music ^-^

  • @-ICS-ROHITRAJSURYAPRASAD

    @-ICS-ROHITRAJSURYAPRASAD

    5 жыл бұрын

    You should focus on the lesson .

  • @KD-xp4di

    @KD-xp4di

    5 жыл бұрын

    This music is the best

  • @npdpek
    @npdpek5 жыл бұрын

    Very nice