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

  Рет қаралды 74,963

Kevin Powell

Kevin Powell

Күн бұрын

Пікірлер: 79
@Mark_MKII
@Mark_MKII 3 жыл бұрын
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.
@srinathmuthusamy9661
@srinathmuthusamy9661 3 жыл бұрын
I haven't used CSS mix blend mode but hope that's useful waiting for the premier
@zachjensz
@zachjensz 3 жыл бұрын
6:50 Kevin: My favourite thing in the world which is a Pseudo Element Kevin's Kids: 😢
@KevinPowell
@KevinPowell 3 жыл бұрын
😂😂
@Timooooooooooooooo
@Timooooooooooooooo 3 жыл бұрын
Surely his kids would be a kevin::after pseudo element?
@GauravKumar-ue7nz
@GauravKumar-ue7nz 3 жыл бұрын
@@Timooooooooooooooo lol
@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.
@rhvsingh
@rhvsingh 3 жыл бұрын
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. 😄😄😄
@shubhamsingh1409
@shubhamsingh1409 3 жыл бұрын
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
@valeriomattera7277
@valeriomattera7277 3 жыл бұрын
Brilliant, just yesterday I used mix blend mode at work and this video gave me a better understanding of its use. Thank you!
@Stoney_Eagle
@Stoney_Eagle 3 жыл бұрын
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 🎱
@crunckNATIon
@crunckNATIon 3 жыл бұрын
This came right on time to my suggested videos...now I'm going to watch the css blend modes
@tushardorale5347
@tushardorale5347 3 жыл бұрын
You are amazing!!! Because of you I'm falling in love with CSS ❤️
@Colstonewall
@Colstonewall 3 жыл бұрын
You are the "CSS KING." No doubt about it.
@francolamattina1803
@francolamattina1803 3 жыл бұрын
Love your content, really enjoyable for learning and entretainment. Thank u!
@kevincrinklaw7422
@kevincrinklaw7422 3 жыл бұрын
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😇🙏
@peternicholson26
@peternicholson26 3 жыл бұрын
Definitely need to be using this more in my hero sections. Good share and great expansion as always chief
@mdshadab1102
@mdshadab1102 3 жыл бұрын
Great! CSS property Love to learn CSS from U Love❤❤ from India🇮🇳
@theman7050
@theman7050 2 жыл бұрын
Ohh that isolation is such a handy tip. Thanks, man ✌🏽😁
@Norell88
@Norell88 3 жыл бұрын
The timing... synchronicity. Thank you for this. :)
@picturit
@picturit 3 жыл бұрын
Instead of setting z-index, in this case, using a ::before I/o an ::after would solve the issue imho.
@KevinPowell
@KevinPowell 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.
@normanomli8703
@normanomli8703 3 жыл бұрын
hi kevin i have an issue where background image loses its transparency during a bootrap carousel transition, any idea why?
@mohammedsamir5142
@mohammedsamir5142 3 жыл бұрын
I have just learnt new useful CSS stuff!!
@afzalmahmudd8365
@afzalmahmudd8365 3 жыл бұрын
Love you. Make a video about staking context. Please. I love you❤️
@hagergamal2856
@hagergamal2856 2 жыл бұрын
Amazing video 👍 Could u make a video on using sticky that explains how u made it up and down 👍
@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
@gamertag8721
@gamertag8721 3 жыл бұрын
nice use of Sticky to show comparison :)
@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
@XTANCE
@XTANCE 3 жыл бұрын
Anyone knows whats the font for the thumbnail of video? "CSS" word
@nyarehd
@nyarehd 3 жыл бұрын
I'm gonna use this in my portfolio project.
@AmlanDasKarmakar
@AmlanDasKarmakar 3 жыл бұрын
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 жыл бұрын
Yes indeed, then the text is automatically added after that one and has a better z-index by default :-)
@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?
@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?
@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.
@BadmintonAllOut
@BadmintonAllOut 3 жыл бұрын
Sir, can we tap the background under the .overlay? Tq
@_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 жыл бұрын
I don't have any plans on covering Bootstrap anytime soon, sorry.
@عقيلمحمد-ب3ن
@عقيلمحمد-ب3ن 3 жыл бұрын
thanks Kevin
@thcdenton
@thcdenton 3 жыл бұрын
3:58 "Acid Trip Kevin isn't real. He can't hurt you."
@fuad7258
@fuad7258 3 жыл бұрын
please make a video with slick slider
@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!
@bimalpandey9736
@bimalpandey9736 2 жыл бұрын
If I use transform property, that mix-blend-mode magic disappears, anyone know why?
@makeitbollywood
@makeitbollywood 3 жыл бұрын
love it
@shinmini99
@shinmini99 Жыл бұрын
Thank you Kevin :)
@pulkitsaxena7668
@pulkitsaxena7668 3 жыл бұрын
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?
@anulama2191
@anulama2191 3 жыл бұрын
Ctrl+/ ?
@emon123utube
@emon123utube 3 жыл бұрын
Dear Sir, your all video tutorial undoubtedly best on KZbin, 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.
@Jarreddesigns
@Jarreddesigns 3 жыл бұрын
love the new music lol
@GauravKumar-ue7nz
@GauravKumar-ue7nz 3 жыл бұрын
Thank you Kevin
@mountainslopes
@mountainslopes 3 жыл бұрын
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.
@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 жыл бұрын
@@polthm that's true, it's easier to do, it just doesn't look as nice though.
@GbpsGbps-vn3jy
@GbpsGbps-vn3jy 3 жыл бұрын
- Hey, someone mix-blends Kevin Powell in Photoshop! - Dude, this is HIS channel ... - Oh, ok ... nevermind!
@AidaHashemii
@AidaHashemii 9 ай бұрын
awesome
@Jarreddesigns
@Jarreddesigns 3 жыл бұрын
you should do youtube shorts with some of these small tips you always mention, should give you a bigger audience
@endenman1872
@endenman1872 3 жыл бұрын
Before i used rgba or hsl as the background, now i use mix blend mode!
@itsPenguinBoy
@itsPenguinBoy 3 жыл бұрын
Sadly chrome on android does the wrong blend modes 😕
@nomadshiba
@nomadshiba 3 жыл бұрын
epic
@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. kzbin.info/www/bejne/bJvIZWyAa5yHh80
@Dexter101x
@Dexter101x 3 жыл бұрын
A bit like photoshop... Later on: Oh you know already
@mikul3122
@mikul3122 3 жыл бұрын
text-shadow?
5 super useful CSS properties that don't get enough attention
16:23
Kevin Powell
Рет қаралды 146 М.
Наложение одной командой в CSS (mix-blend-mode)
8:46
WebDev с нуля. Канал Алекса Лущенко
Рет қаралды 7 М.
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 127 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 80 МЛН
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 80 МЛН
How you can simplify your CSS with :is()
9:20
Kevin Powell
Рет қаралды 335 М.
Please stop using px for font-size.
15:18
Coder Coder
Рет қаралды 197 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 969 М.
The secret to mastering CSS layouts
17:11
Kevin Powell
Рет қаралды 286 М.
The Easiest Way to Build Websites
10:56
Sajid
Рет қаралды 549 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 485 М.
13 Things To Remove From Your Website Immediately
12:33
Orbit Media Studios
Рет қаралды 323 М.
How To Build a $20,000 3D Website (No Code + AI)
8:12
WeAreNoCode
Рет қаралды 271 М.
Become A Master Grid CSS In 13 Minutes
13:46
Lun Dev
Рет қаралды 50 М.
10 CSS PRO Tips and Tricks you NEED to know
9:00
Coding2GO
Рет қаралды 43 М.
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 127 МЛН