CSS Card with hover animation and mobile fallback

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ • 344

  • @ThiagoVieira91
    @ThiagoVieira91 3 роки тому +177

    Ah yes my daily dose of front-end improvement! It shall grant me better jobs ahead. 📈

  • @welikerosafloyd
    @welikerosafloyd 3 роки тому +121

    26:59
    Other UA-camrs: Move face-cam on recording software so we can see what they're doing
    Kevin: padding-right it is

  • @p20ph37
    @p20ph37 3 роки тому +29

    I just discovered your channel and it's extremely exciting to dive into all of your videos because of how detail oriented you are in explaining what and why you do something. Even when you don't fully explain something, you throw us a lead for us to Google. Thanks a heap, Kevin!

  • @GregSkriloff
    @GregSkriloff 3 роки тому +20

    The hover media query, focus-within pseudo-class, and reduced motion media query are awesome!

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

    I'm an embedded systems developer, but you sparked my passion for front end develpment. It's my new hobby now.

  • @kuntaldas2843
    @kuntaldas2843 3 роки тому +21

    we can use *transparent* in linear gradient.
    I use something similar to this 👇
    background : linear-gradient(transparent 20%, rba(0,0,0,0.75) 90%);

  • @ZackPyle
    @ZackPyle 3 роки тому +9

    One thing I've been a fan of lately is doing a --transition variable which is just the second half of the transition syntax (leaving off what is being transitioned) - so I do --transition: .2s ease-in-out; which then lets me do things like transition: color var(--transition) and then later in my CSS do transition: background var(--transition) which equates to even transitions throughout the site!

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

    Thumbs up for the guide!
    22:60 If anyone is trying to minimize the blur while hover-scaling adding an extra class to the card (ex: ) and then adding the bit bellow will drastically improve it. I tried playing around with these (and many more properties), however the only approach that worked so well, is when I added them, by themselves to a separate class.
    .card-blur {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
    }

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

    This video was super helpful and I’ve learned a lot! I’m trying to get back into web dev after stepping back for the last 7 years for family, and a lot has changed!!! watching this and others of yours has really given me the confidence that I can get my career back on track and know what I’m doing again. Thank you.
    I never even thought about tabbing on a card or if someone had animations turned off!

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

    I honestly don't even care about the card animation anymore. When you made an element with a class using shorthand div.class it blew my mind and I switched over to Studio Code to try it. Why haven't I seen this before? Game changer.

  • @BehruzbekOtayev
    @BehruzbekOtayev 3 роки тому +13

    That was a hell of a lesson. 99% of the tutorials indeed end on UI elements coming together, and that will be all.
    Great Job, Kevin. Love your work. Thank you very much.

  • @RockcomLegendas
    @RockcomLegendas 3 роки тому +200

    12:11 "Click the card there if you wanna die".
    Thanks for the lesson professor, very appreciated, but I'm not clicking that card!

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

      he meant dive 😂😂😂

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

      Legal encontrar você aqui, curto muito teu canal.

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

    please make more of these! these are perfect for strengthening my css skills. tyvm!

  • @zachjensz
    @zachjensz 3 роки тому +73

    When you said you had a lot of editing, I didn't expect an amazing 50 minute video on animated cards! It even has 5 animated UA-cam cards throughout haha

    • @KevinPowell
      @KevinPowell  3 роки тому +12

      Haha, yeah it was a longer one to put together, but I had fun with it :)

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

    Every time you drop a new video, I watch it and then go spend hours modifying every site I've made to reflect things I've learned
    Superb videos! Absolutely LOVE them
    Thank you so much!

  • @andrewcuster6498
    @andrewcuster6498 2 роки тому +1

    tabindex="-1" as an attribute in the HTML .button element prevents the button from being reached with the tab button. Not to worry, I'm really glad I know about the focus-within pseudo element as well. Thank you, for real, for this UA-cam lesson. Definitely an asset to my skill-set now.

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

    That overflow: hidden; just helped me on a basic project i’m doing

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

    omg, im programer student in brazil, and this guy is helping me a lot with my css learning, thanksssss

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

    The best meaningful CSS tutorial that cares about a11y and other situations. Thank you for your awesome work.

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

    Definitely the best channel for beginner web developers

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

    This is the first time I'm this early to one of your videos, as I discovered your channel just last week. And you're already helping take my css to another level. Thank you so much for your content!

  • @Morrile1
    @Morrile1 3 роки тому +18

    Outstanding lesson, and a very important one as the web is now accessed more and more on mobile devices, perhaps more than PC's nowadays.

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

    YOU'RE THE BEST KEVIN! THANKS FOR THIS AMAZING AND 100% USEFUL CHANNEL. THIS CHANNEL IS AN ABSOLUTE GEM

  • @maurolimaok
    @maurolimaok 2 роки тому +2

    I'm still at the logarithm and logic phase, but these videos will help a lot in the future. Thanks a lot.

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

    I totally like the way you explain things and the line of thought to get thru all the required steps, great work and thank you so much

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

    I really liked the way you code it in steps where "you figured out" that it doesn't work on mobile and fix it afterwords!
    That is the situation for me most of the time, and it's frustrating where I often redisgn the whole thing. But knowing these "tricks" will hopefully reduce the redesigning. 🙂

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

    Great tutorial! I like the fact that you actually run into problems. It becomes very much a realistic scenario one probably will have.

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

    I am literally doing this in my project right now and oh boy was I looking for a video like this. Thanks a lot!

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

    PLEASE PLEASE PLEASE keep doing this videos! This is awesome

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

    I honestly think that one of the best parts of these tutorials is when you run into problems and have to fix them.
    Fixing problems in your build seems to be entirely a different skill in itself; and I guess it's something you have to face once you get out of tutorial prison and start experimenting with your own ideas.

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

    THIS is a great video solving real-world challenges making sites more attractive. I design city and county websites and we are often looking for new ways to create "Services Panels" or "Cards" in this case. Very timely and useful. Thank You.

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

    I really enjoyed the tutorial, took me longer than usual to eventually get it right, and I want to try the Animated Card next. Thank you Kevin for the really educational, informative and fun video. I look forward to seeing more videos and hopefully expand my knowledge on CSS. You are awesome!

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

    His videos are always awsm. It shows his expertise in web Dev.

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

    I'm a beginner web designer (just learning as a hobby for now, but hope to get good enough for a career transition in the future) and I just wanted to say even though there's a lot being covered here which I don't know or understand I'm just super impressed and fired up seeing what's possible, and what I might be able to accomplish some years from now if I keep learning! Really great stuff! Actually ended up applying 'card:hover > transform: scale' to a very simple webside I am working on just to spruce it up a bit and make it feel more interactive after seeing you do it here! I'm a long way away from tackling some of the more challenging concepts, but even simple things like that have made a big difference for me!

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

    Next level tutorials!!
    I noticed the first bit of the video had a lot of echo, but once you dove into the code, your audio was perfect.

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

    @media(hover) - where have you been all my life?!? What an awesome tutorial!
    I love watching other channels creating these wild animations, but I don’t implement them because of various a11y & mobile concerns. I think you’ve just resolved every single one of them in this video.
    Instant sub. Thanks for the great content!

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

    Mind blowing video. Many many new things learned.

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

    Omg I've never seen anyone explain css like you you really make the css easier

  • @JuanCastro-C
    @JuanCastro-C 3 роки тому

    This is AWESOME Kevin, thank you very much for this content

  • @Brandon-sr4qp
    @Brandon-sr4qp 3 роки тому +1

    Fantastic walkthrough, I love how you went about it a little more realistically. I'm always a huge fan of your explanations behind why things work in the way they do, it really helps when it comes time to actually apply whatever it is into my own projects. Thanks, Kevin!

  • @saxmimmo
    @saxmimmo 3 роки тому +3

    I mean, that's awesome! Of course, SASS is a saviour in those (ie. all) scenarios

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

    this is amazing, thank you very much for sharing this, you may not like being called the king of css, but you have been dubbed by us, your fans, the king of css

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

    That was really nice. Thanks man. You are doing very good job !

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

    It has been so long since I have touched anything related to programming, it's so cool that you can now do such things just with CSS.
    Awesome content!

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

    Hey Kevin, I'm more off a backend development but always watch your videos to improve a little bit of my css skills. You have amazing teaching skills, also super clear and to the point. Thanks for all the content!

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

    Seriously, I never thought this deep. Thanks for this awesome lesson.

  • @yousifal-raheem5061
    @yousifal-raheem5061 3 роки тому +4

    Cool video. If you want to wrap your content with an element, you can highlight the block of code, bring the command palette and type "wrap with abbreviation". And then you write emmet. Something like ".card-content > .something-else"

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

    Beyond just basics. Great Kevin 👍👌

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

    Loved this one Kevin! Most tuts online solve the overlay with absolute positioning, however your transform solution was a loooot cleaner. Thanks a bunch!

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

    I just discovered your channel like yesterday but I've watching your vids non-stop. Your tutorial is spot on and super easy to unserstand, super thoughtful. I felt like you should have 1M subs compare to other channels that I've watched. What's an underrated channel. Thanks very much sir.

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

    I just needed to show my appreciation for this channel I am learning a lot, really thanks.

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

    Your tutorials is always outstanding. Thanks so much Kevin for making youtube fun.

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

    You are literally the King Of CSS.

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

    Great stuff. SO much better than multiple media queries

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

    Damn it. I discovered you few days ago. You’re awesome! Thanks for the explanation !

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

    I have just subbed. I want to switch from data science to dev. I will be watching your vids a day just to groove my front end.

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

    Man I'm watching this to relax after a long day of front ahah, and this is truly amazing, thanks for your work, inspires me a lot

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

    Blimey Kevin - you truly are a CSS God!
    I'm finding the more you learn, the more there is to learn 😩

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

    I learned so much. Thank you. This is amazing stuff.

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

    Realy usefull Kevin. Loking forward to use more complicated animations on production. So far i have used to disable hovers on media (min-width)

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

    Incredible tutorial Kevin. Thanks!

  • @AH-cf9cv
    @AH-cf9cv 3 роки тому

    thanks Kevin god bless u for uploading this amazing css tutorial....from India...

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

    Learned alot from this video...idk these many thing about media query...

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

    didn't see a youtube card on the final credits, don't know if it's only me, thanks a lot for the amazing content! media(hover) is going on everything from now on

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

      I did get a card, but in case anybody else sight, here's the link: ua-cam.com/video/YmyqlM13JUU/v-deo.html

  • @hannesqvarnstrom8361
    @hannesqvarnstrom8361 3 роки тому +4

    Thanks for an excellent video, Kevin! :) You've really helped me this past year, inspiring me to become more creative in my front end solutions, and your attitude towards learning is so wholesome and easy-going that I find it very easy to understand your topics. I am starting my first full-stack job right now, and I will be taking your css/js-tips with me! Thanks

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

    Awesome video, learnt so much! Thank you!

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

    Really nice video very informative, some css property I know but not used yet... Now I use it...Thank you for sharing...

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

    great video friend, I really liked the animations and I learned a lot about them too, thanks for encouraging them to make everything easier :D greetings from Argentina

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

    Amazing video Kevin, it is super interesting and so well explained. Thank you so much for make me love CSS being a backend developer :).

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

    Amazing video KEVIN, and I realized how time-consuming and nerve-wrecking this job is...

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

    I really learnt a lot of this video! Thank you Kevin!
    I'm starting my first job as a developer in June and am preparing for it by watching your helpful videos.

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

      @Kansai Japan Walker Great, thank you. Of course it is a struggle with the imposter syndrome from time to time but it is also a constant increase in skill and knowledge.

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

    Kevin, if it wasn't for you. I wouldn't know CSS, keep up the great work. Just know you're changing peoples lives/careers. Thank you.

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

    So many good tips in here. Really good stuff.

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

    One of the better web developers I've come across in a long time. One thing I would be curious about is how to deal with mobile phones that have a stylus as I believe that would fall under the hover. I tried your code and on my Samsung Galaxy w/ a stylus, the content is hidden until I click on it.

  • @jimmyj.6792
    @jimmyj.6792 3 роки тому

    Awesome explaination 😍😍😍 so so interesting 👌 thanks a lot Kevin for this 😀😀

  • @AmitKumar-bz6we
    @AmitKumar-bz6we 3 роки тому

    This was a very informative and helpful video. Looking forward to seeing more such videos!

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

    I learned a lot of things with this video , thanks Kevin

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

    Great job Kevin. As usual, I learned alot.

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

    I’m impressed with the level of detail you put into this thing.

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

    This is going to be very useful for my personal blog :)

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

    Hey Kevin, love the videos. Especially this one.

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

    You can fix the glitch when tab focusing by removing the transition delay too. Now, when you tab focus, the button is on the very bottom of the card, not the 1.5em above bottom, so it first snaps to position where button is visible, and then after 500ms "animates" to where you want it to be.

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

    As a full-stack dev interesting seeing someone enjoying working with css this much, keep up the good work! Also "keep the code in order" oh sir, yu don't want to see my spaghetti code, instant heart attack, even I can lost in it who wrote that. (PHP mostly)

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

    very cool, @media (hover) is the most awesome thing I learned from this video

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

    Thank u mr Kevin
    really useful content

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

    Fantastic content as always Kevin! I learn something new every time even when I think there's nothing left to learn with CSS. This time the @media (hover). A great little tool to remember for the future.

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

    Nothing better than start the day with some daily dose of animation and css

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

    great its help a lot in responsive layout

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

    You're great at explaining CSS!

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

    This was amazing, very interesting and fun to watch!

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

    Gosh, I love your videos. Very nice tutorial. I realy like how you play with the delays.

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

    hahahahah. ive been crying inside because it all was working after finishing the video, then i went to have lunch and when i came back my card content was always showing on firefox, but working fine on chrome. I made a lot of google searches, edited the code and looked in the comments, and finally, after 30 minutes or so, I decided to close firefox and reopen it and it works. damn it!

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

    Nice one Kev! A lot of good CSS features wrapped up in one ! I mean no more comma's :O hover media query's!! and that elegant use of selectors!! I always assumed that you couldn't use hover and ::after together ! Thank man great fun

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

    sweet tutorial, your efforts are much appreciated. @media (hover) { gave me chills }

  • @atkevindsouza
    @atkevindsouza 3 роки тому +8

    From one Kevin to another, Can we get more Intermediate-Advanced videos? Thanks!

  • @jugendfussballberlin
    @jugendfussballberlin 2 роки тому +1

    Always nice to watch your content.
    my 50cent:
    - 24:38 could set an other helper variable like "- -seconds" and "--ease"
    - "image-rendering: pixelated;" in class card could fix the aliasing effect of the background (all) image(s) inside the card container.

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

    You’re awesome CSS master!

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

    Thank you. I'm watching you well. :D

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

    Why did I not know about this channel before? i would have made life much easier when I was working on a website assignment for my university class

  • @The-Dev-Ninja
    @The-Dev-Ninja 2 роки тому

    the best video ever, watched the full video!