Create a neon button with a reflection using CSS

Поделиться
HTML-код
  • Опубликовано: 28 июл 2024
  • A look at creating a neon button effect using CSS, including a glowing reflection on the "ground", and a little dive into the world of performance as well.
    Performance link I mentioned in the video: / how-to-achieve-60-fps-...
    The code: codepen.io/kevinpowell/pen/QW...
    ⌚ Timestamps
    00:00 - Introduction
    00:50 - What we're starting with
    01:20 - Styling the button
    03:54 - Adding the glow to the text
    06:20 - Adding the glow to the button
    07:39 - Adding the reflection
    13:42 - Adding the hover/focus styles
    #css
    --
    Come hang out with other dev's in my Discord Community
    💬 / discord
    ---
    Keep up to date with everything I'm up to
    ✉ www.kevinpowell.co/newsletter
    ---
    Help support my channel
    👨‍🎓 Get a course: www.kevinpowell.co/courses
    👕 Buy a shirt: teespring.com/stores/making-t...
    💖 Support me on Patreon: / kevinpowell
    ---
    My editor: VS Code - code.visualstudio.com/
    ---
    I'm on some other places on the internet too!
    If you'd like a behind the scenes and previews of what's coming up on my RUclips channel, make sure to follow me on Instagram and Twitter.
    Instagram: / kevinpowell.co
    Twitter: / kevinjpowell
    Codepen: codepen.io/kevinpowell/
    Github: github.com/kevin-powell
    ---
    And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

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

  • @dave6012
    @dave6012 3 года назад +538

    That is hands down the coolest button I’ve ever seen. I’m gonna build it just so I can click it.

  • @black_platypus
    @black_platypus 3 года назад +104

    12:35 The moment the blur kicks in... 🤩😍

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

      I swear...

  • @pratik_chuckles
    @pratik_chuckles 3 года назад +677

    I am a python developer and have never paid much attention to css, now this channel has got me hooked to css!

    • @KevinPowell
      @KevinPowell  3 года назад +43

      Oh, so happy to hear that!

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

      Yea great CSS ch!!!

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

      I’m about to dive head first in to Python 👀 soon. Have learned the basics already and really love it!!

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

      I'm a web developer and this channel got me hooked as well

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

      @@ccriztoff wtf is wrong with you?

  • @AJD...
    @AJD... 3 года назад +111

    no one:
    Kevin: this looks like comic sans, this will look good

  • @KXBeats
    @KXBeats 3 года назад +165

    CEO of big Company: "Why did you move the button to the left?"
    Kevin: "Oh my head was just in the way"
    CEO: "Your- what?"

  • @yaldakarimi3772
    @yaldakarimi3772 3 года назад +10

    I learned everything I know in css from you, but I'd dedicated all my time to react and learning the required technologies over the past year to be a full-time frontend developer and I did it! now I'm back to your channel again to learn more stuff in css and god you are such a great teacher, I just enjoy watching your videos. I want to thank you for all your great content since you and your videos made me even consider the path I'm on now! thank you :)

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

    This video is just packed with useful information and clear explanations for mid to high level CSS shenanigans. Absolutely brilliant, thank you.

  • @JoolsParker
    @JoolsParker 3 года назад +20

    This is an awesome effect - but how you demystify css with step-by-step coding and explanations for every line is even more awesome. Who knew css could be soooo simple? 😉

  • @AbdullahAli-rg8ug
    @AbdullahAli-rg8ug 3 года назад +17

    Amazing neon effect and also code was well explained!

  • @nou9225
    @nou9225 2 года назад +14

    A beginner learning web dev here. I’d like to extend a huge thank you, Kevin, this video made me understand the power of css like no other. Amazing content

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

    Thanks, I have learned a lot from this channel, I like how you get into details and even change code to explain it. It just sinks in.

  • @micharozek3046
    @micharozek3046 3 года назад +3

    Hey Kevin! I am watching you from a couple weeks and I just wanna say that you are a great person. Thank you for sharing this super nice content :) Keep it up man! Cheers from Poland :)

  • @nallawilljr.4873
    @nallawilljr.4873 3 года назад +107

    I'm designing a tribute page for my tutors and you're one of them, KP. Thank you for helping me in my self taught journey ✌🏾

    • @KevinPowell
      @KevinPowell  3 года назад +10

      Looking forward to seeing it!

    • @fuballplanet6952
      @fuballplanet6952 3 года назад +9

      @@KevinPowell First of all, I hope you will see my comment. I want to thank you soo much for what you giving to us in terms of toturials, for you Maybe this is normal thing, but believe me, you are doing a lot,
      In developed countries. There are many opportunities in universities, private schools and programming camps, so people have a lot of options to learn programming, but in underdeveloped countries Like my country where We have just a cheap computer and slow internet LOL, we do not have these opportunities, and you and the likes of you provide services to humanity with these TOTURIALS. Continue and be ambitious. Perhaps one day someone from underdeveloped country will come to you and say you were my teacher when I did not have one ,and I hope that you will provide us with lessons in the JavaScript language we need that so much, so you are the best in the field.

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

      super idea. i'm adding Kevin's name to my credits on my about page (if he's down for that)

    • @nallawilljr.4873
      @nallawilljr.4873 3 года назад +3

      @@fuballplanet6952 "When something is important enough, you do it even if the odds are not in your favor." - Elon Musk

    • @nallawilljr.4873
      @nallawilljr.4873 3 года назад +2

      @@A_Lesser_Man We all seem like open-minded individuals with a passion for coding, so if you don't mind, dm me on IG @nallawilljr I'd love to share ideas or maybe even work on some projects together 😊

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

    This is amazing Kevin, thank You for creating Your content!

  • @Somebody-tb7um
    @Somebody-tb7um 2 года назад +18

    I've used this button on some of my personal projects(mostly just practicing my HTML and CSS skills) and it's amazing I love it, also even though i don't like css that much you've truly helped me like it just a bit more. Thanks Kevin!

  • @jessejburton
    @jessejburton 3 года назад +10

    I love the feeling of excitement I felt (which only fellow CSS nerds will understand haha) when you applied filter blur and that reflective glow appeared. So cool! :)

  • @0xbitbybit
    @0xbitbybit 3 года назад +9

    Freakin awesome Kevin, it's that reflection on the "ground" that does it, makes me alll warm and fuzzy, I have an urge to make an entirely retro neon themed website for absolutely no reason now. So cool! Thanks!!

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

    Amazing explanation of what is going on and concise example! Thank you!

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

    I really have high affinity for your videos, I nearly ignored CSS to frameworks but av been forced to remain in CSS because of your tutorials. Everything is achievable. Thanks alot.

  • @diegomarzo4001
    @diegomarzo4001 3 года назад +3

    You blow my mind with this one, I didn't know about perspective transformations and it is amazing, it reminds me the Mode7 of SNes :)

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

    This is really friggin rad! I split my time pretty evenly between 2d graphics design, 3d art and design and software development, so it was wild to all of a sudden see concepts from 3d graphics just all of a sudden hanging out with CSS like this!

  • @KnightEdits69
    @KnightEdits69 3 месяца назад

    What a good video. Straight to the point, not confusing, and you’re really entertaining to listen to. This helped so much

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

    Excellent video, everything is explained, it helped me a lot! Awesome effect!

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

    Absolutely LOVE your work Kevin - thank you so much

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

    I like this design and how you explained it all the way through, you are great.

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

    Wow it's so amazing!! Thanks for your really helping tutorials!!🤩🤩

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

    You are the first person to not only explain CSS but make me understand it and want to work with CSS.

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

    Never have I subbed so fast. Your videos are so amazing and bingable! Thank you so much for your work!

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

    That was awesome, really nice effect. Btw now I understand what is before and after, thanks!

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

    Thank you very much for this!
    Since the button is getting brighter when hovering, I also added the following to .neon-button:hover to add more perceived light to the scene. Might be a touch too much, but you can adjust as you see fit.
    ```
    transform: perspective(1em) rotateX(40deg) scale(1.3, 0.5);
    ```

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

    This tutorial simplifies the application of rem and em, THANK YOU

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

    I love this! I’ve been looking to get more professional with web design and I love your content!

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

    This was an awesome fun exercise - gave me many ideas for this button use - thank you!!!

  • @austinsawyer829
    @austinsawyer829 8 месяцев назад

    This is amazing! I love your videos! Thanks for all your expertise!!

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

    You're the GOAT !!!! My CSS skills improved so much. Thank you !!!

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

    Awesome, I really enjoyed this video! Definitely using this in my projects!

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

    This is so sick man! Super cool!

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

    You, sir, earned yourself a sub for this video!Great work!

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

    You did it great ! Awesome Work 😉

  • @klemenhorvat-novak2056
    @klemenhorvat-novak2056 2 года назад

    Best channel for CSS thank you Kevin for amazing content :)

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

    That's a super nice button. Very helpful video!

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

    I'll try to replicate this tomorrow. This is so cool Kevin.

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

    So awesome! Your videos never disappoint. 😎

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

    Amazing video! These buttons were perfect for my client's project. I always enjoy your stuff so I gave you a sub.

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

    This is amazing. You're definitely the best CSS youtuber.

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

    Thank you! Love your videos!!❤

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

    Having a hard time figuring out how to add multiples of these on one page, apart from that, this is great! Thanks for yet another amazing vid!

    • @DajuSar
      @DajuSar 3 года назад +3

      Then a framework would be usefull, you can use React, get this button in his own class so you can just copy and paste it. And the css would be a module thats it

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

    Awesome glowing button, I don’t know if i will use it in prod on my job projects 😓 but it’s always good to know how you make it real !

  • @ufufu001
    @ufufu001 3 года назад +24

    12:38 i literally gasped when you applied blur here. the result looks so good.
    this video has convinced me to buy “css: the definite guide”. it’s time to stop neglecting css. it is important and every dev should be good at it.

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

    Thank you for this. I learned a lot from this video alone!

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

    I always click the like button before even watching the video because your videos are always great and I learn a lot of fun stuff. Your videos are guaranteed to be good

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

    Awesome man Thanks, really learnt new stuff from the video

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

    Amazing explanations. Thanks!

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

    pure art my friend

  • @jd4300
    @jd4300 3 года назад +6

    Recently hired as a web designer (3 months ago) this is my favorite channel hands down for CSS. You are the man Kevin! And your channel played a vital role in me switching careers and going into web design/development. Thank you!

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

      How many years before you applied?
      I mean experience and what experience you have?

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

      @@jw200 4 months of learning before I applied ! Just build projects. Build websites. Have projects to show off your skills. I was also getting the most interviews I have ever gotten in my life

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

    Great work, I really enjoyed 👍

  • @sanjeevKumar-eg6hp
    @sanjeevKumar-eg6hp 2 года назад

    This video was awesome gave me a lot of new angles to think on.

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

    Just awesome -- total crazy stuff

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

    Using something similar to this in production, thanks for this tutorial!

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

    I really appreciate the content and a lot of your tips throughout the video. Also just want to express my admiration to your rap-like speaking speed while maintaining the tempo and smoothness. I was thinking in my head “I would need a speaking course to get to this level”

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

    Looks amazing!

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

    Really helpful video. Please make more of these types of videos with details.

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

    Absolute bliss, pure joy.

  • @thecutedreamkostasp.4449
    @thecutedreamkostasp.4449 3 года назад

    Nice job and creativity buddy! Actually Well Cssed!

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

    How is this so amazing!? Wowy

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

    My inspiration is you for learning more on css☺️☺️

  • @GauravKumar-ue7nz
    @GauravKumar-ue7nz 3 года назад

    WOW, Loved It

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

    This is so cool. Been wanting to make a practice website with this sort of theme

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

    You are amazing. Such a good content. Thank you so much for this video Sir.

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

    You are the king of CSS!!!

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

    I have to say,,, You are a real and true CSS legend... Come from my heart 💗💗

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

    This looks so cool and it doesn't seem complicated.
    Imma steal it.

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

    This is making me understand more and more why CSS development is in fact real development work. It is simply amazing what's possible with this when you really know about it (which I don't yet - I am mainly a Java developer).

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

    OMG stunning man

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

    Yes! I did it 🕺🤘👍! It was cool. Thanks for this video.

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

    Thanks a lot for that information, that was quite useful ^^

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

    That was really really nice! Thanks!

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

    looks amazing, luv it 👍 Hope I get to use this someday :D Customers usually aren't looking for this kind of style 🙄

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

    i was a subscriber before i knew what was CSS now iam learning Webdevlopment and it is helping a lot such awesome content

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

    This was an awesome video!

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

    Cool video. Definitely something I would show off in my projects just because.

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

    awesome work!

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

    This was awesome! Subscribed to this channel :)

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

    Thanks, that was very helpful :D

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

    Superb vid!

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

    Really very awesome, congratulations

  • @facundocorradini
    @facundocorradini 3 года назад +10

    Amazing effect! this would be a great use case for display-p3 colors from the CSS Color level 4 module, for extra bight color in compatible displays ;)

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

      That would be so great for sure! A real neon pink or green would be fantastic. Once browser support increased for those, maybe I should revisit this to introduce them :)

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

    This is also amazing as last one I will be practicing it tomorrow 👍👍

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

    Very beautiful button. Not sure when I'd use it, but it looks great! :D

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

    kp you deserve an oscar for this tutorials , really thanks from bottom of my heart

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

      So glad that you enjoyed it!

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

    Thanks Kevin !

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

    I learn lot from this channel

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

    I liked that Glowing Cool Button so I it on my HTML/CSS school project . and it looks beautiful

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

    you are an artist

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

    Massively cool, good vid/tutorial.

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

    Amazing! 👏

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

    Thanks for the tutorial!

  • @atlAs-i9z
    @atlAs-i9z 2 года назад

    You have inspired me as a beginner web developer and one day i hope to become like you in my css😁

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

    Awesome! Thanks

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

    Really instructive thank you