How to use mix-blend-mode, and how to avoid problems with it

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

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

  • @zachjensz
    @zachjensz 3 года назад +53

    6:50
    Kevin: My favourite thing in the world which is a Pseudo Element
    Kevin's Kids: 😢

  • @Mark_MKII
    @Mark_MKII 3 года назад +7

    Thanks for the video - it's crazy how much you can do with CSS now!
    To clarify one point, 'multiply' darkens the image by 'multiplying' the color values of the upper layer onto the lower layer (not just letting darker pixels through). Even pixels from the lower layer that are darker than the upper layer are darkened *further*. Not sure about CSS, but in Photoshop the 'darken' blending mode is closer to what's described in the video.

  • @TheZamirOrion
    @TheZamirOrion 11 месяцев назад

    You are definitely the best, interesting, in-depth and at the same time bite-sized ressource.
    Thank you so much.
    You made me love CSS again.

  • @srinathmuthusamy9661
    @srinathmuthusamy9661 3 года назад +11

    I haven't used CSS mix blend mode but hope that's useful waiting for the premier

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

    I have used mix-blend-mode a lot but could not figure out the gradient look. Thank you Kevin.

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

    Today, I was searching for mix-blend-mode and found some useful information and now you made a video on it. Now I will master it. 😄😄😄

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

    Brilliant, just yesterday I used mix blend mode at work and this video gave me a better understanding of its use. Thank you!

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

    css is so painful, thank you for helping ease the pain a little

  • @Stoney_Eagle
    @Stoney_Eagle 3 года назад +8

    I don't see that being used anywhere but it looks really good.
    I'm fixated on that scroll animation hehe, looks like a pool ball kicking another 🎱

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

    You are amazing!!!
    Because of you I'm falling in love with CSS ❤️

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

    This came right on time to my suggested videos...now I'm going to watch the css blend modes

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

    Love your content, really enjoyable for learning and entretainment. Thank u!

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

    Hey, side note but that's a nice use of position: sticky on the scrollups. I think it made for a nice demo. (Although if it's something different, I'd be curious to know what).

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

      Yeah, I love position sticky 😁

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

    Hey, Kevin! Learning sooo much from your videos. It's fun, love your videos. Thank youuu😇🙏

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

    You are the "CSS KING." No doubt about it.

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

    Ohh that isolation is such a handy tip. Thanks, man ✌🏽😁

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

    Great! CSS property
    Love to learn CSS from U
    Love❤❤ from India🇮🇳

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

    Definitely need to be using this more in my hero sections. Good share and great expansion as always chief

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

    Amazing video 👍
    Could u make a video on using sticky that explains how u made it up and down 👍

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

    The timing... synchronicity. Thank you for this. :)

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

    the "mix-blend-mode: difference", is to take the opposite of each color, so on 4:32 you see a black screen because the default screen on photoshop is white

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

    Love you. Make a video about staking context. Please. I love you❤️

  • @picturit
    @picturit 3 года назад +4

    Instead of setting z-index, in this case, using a ::before I/o an ::after would solve the issue imho.

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

      A lot of people have said that, but it doesn't work. mix-blend-mode creates a new stacking context by default, so either way it's on top.

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

    I have just learnt new useful CSS stuff!!

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

    I think we can also go for ::before pseudo element instead of working with isolation and z-index in this context.

    • @Tom-xi4vk
      @Tom-xi4vk 2 года назад +1

      Yes indeed, then the text is automatically added after that one and has a better z-index by default :-)

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

    I'm gonna use this in my portfolio project.

  • @gamertag8721
    @gamertag8721 3 года назад +4

    nice use of Sticky to show comparison :)

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

    Still the best! Could you show how you did that scroll thing as well? Looked cool

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

      Is inside the codepen. Sections and sticky positions

  • @عقيلمحمد-ب3ن
    @عقيلمحمد-ب3ن 3 года назад +1

    thanks Kevin

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

    Hi Kevin. Big fan of your CSS tutorials. Wanted to ask if there is any possibility of you making an Intermediate level tutorial of Customizing Bootstrap -5 with SASS and Bootstrap's new Utility API? Any thoughts?

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

      I don't have any plans on covering Bootstrap anytime soon, sorry.

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

    Non related to your vid Kevin; What are your thoughts on Tailwind? I just saw a video of new features for tailwind and just wanted to hear Your thoughts on it and just commented on the first video I could find of yours. 😁 Personally, I'm worried about css knowledge in the community would decrease tremendously, if tailwind becomes sort of standard. I mean, it has the obvious benefits of styling things incredible fast. Do you have a video on this topic? If not, perhaps the topic would be interesting enough for one? Allt the best to you!

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

    Looks absolutely fantastic! Thanks a lot

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

    This layout example reminds of an issue I’m sure you could give some insight on. That is, what are design best practices when making this type of hero layout responsive?

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

    Thank you Kevin :)

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

    what is the diffrence between background-blend-mode and the mix-blend mode? can you please tell me or make a video on this.

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

    3:58 "Acid Trip Kevin isn't real. He can't hurt you."

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

    Dear Sir, your all video tutorial undoubtedly best on RUclips, your viewer all over the world, so for Non native English people like us its hard to understand while you talk too much fast in every tutorial, so i request you please while you talk please think about for non-native people

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

      Been trying to slow down for 5 years now, it's hard 😂. You can slow the video down in the settings, and also turn on captions. I do my best to slow down as well!

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

    please make a video with slick slider

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

    Thank you Kevin

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

    love it

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

    Plz make a video on eliminate vertical scroll bar

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

      Hopefully you mean horizontal? I've looked at debugging in the past... sometimes things like 'overflow-x: hidden' are useful for that though, but it can be good to find what's causing it.

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

    love the new music lol

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

    Sir, can we tap the background under the .overlay? Tq

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

    I'm working on a site where user's can specify their own background image. Is there a blend mode that is good at providing contrast against an arbitrary background?

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

    Anyone knows whats the font for the thumbnail of video? "CSS" word

  • @GbpsGbps-vn3jy
    @GbpsGbps-vn3jy 3 года назад

    - Hey, someone mix-blends Kevin Powell in Photoshop!
    - Dude, this is HIS channel ...
    - Oh, ok ... nevermind!

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

    hi kevin i have an issue where background image loses its transparency during a bootrap carousel transition, any idea why?

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

    how does he comment the line with shortcut... I have searched alot and I cant find the shortcut to comment.. Does anyone know how to do it?

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

    If I use transform property, that mix-blend-mode magic disappears, anyone know why?

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

    awesome

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

    Why not use a "background-color: rgba()" for this example ?

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

      Same result as when I dropped the opacity 🙂

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

      But the texts are not affected, no ?

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

      @@polthm that's true, it's easier to do, it just doesn't look as nice though.

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

    Before i used rgba or hsl as the background, now i use mix blend mode!

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

    Couldn't you just use ::before instead of ::after to make it behind the text?

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

      Nope, same result. Try it out in the codepen :) - as soon as we declare position: absolute, it's pulled from the flow and going on top.

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

    you should do youtube shorts with some of these small tips you always mention, should give you a bigger audience

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

    I quite often use a color mix blend with a layer over the top of images in signposts, then fade the opacity of it in on hover. So you get a nice tinted hover, but man Safari doesn't like animating that stuff. Terrible flickering. Had to throw on the traditional 'transform3d(0,0,0)' to help it, but looks totally different when I do this. I've accepted Safari isn't very good and moved on.

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

    This would be a good video to show off the 'Layers' panel in chrome dev tools, provides a great way to visualize the stacking contexts. ruclips.net/video/6je49J67TQk/видео.html

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

    Sadly chrome on android does the wrong blend modes 😕

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

    epic

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

    A bit like photoshop...
    Later on: Oh you know already

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

    text-shadow?