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

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ต.ค. 2024

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

  • @zachjensz
    @zachjensz 3 ปีที่แล้ว +54

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

  • @srinathmuthusamy9661
    @srinathmuthusamy9661 3 ปีที่แล้ว +11

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    I have just learnt new useful CSS stuff!!

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

    Looks absolutely fantastic! Thanks a lot

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

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

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

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

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

    I'm gonna use this in my portfolio project.

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

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

  • @gamertag8721
    @gamertag8721 3 ปีที่แล้ว +4

    nice use of Sticky to show comparison :)

  • @عقيلمحمد-ب3ن
    @عقيلمحمد-ب3ن 3 ปีที่แล้ว +1

    thanks Kevin

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

    Thank you Kevin :)

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

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

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

    love it

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

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

  • @GauravKumar-ue7nz
    @GauravKumar-ue7nz 3 ปีที่แล้ว

    Thank you 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.

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

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

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

    please make a video with slick slider

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

    love the new music lol

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

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

    Dear Sir, your all video tutorial undoubtedly best on TH-cam, 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!

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

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

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

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

  • @GbpsGbps-vn3jy
    @GbpsGbps-vn3jy 3 ปีที่แล้ว

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

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

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

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

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

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

    If I use transform property, that mix-blend-mode magic disappears, anyone know 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?

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

    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.

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

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

    Sadly chrome on android does the wrong blend modes 😕

  • @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. th-cam.com/video/6je49J67TQk/w-d-xo.html

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

    epic

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

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

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

    text-shadow?