Understand CSS Mask in 4 Minutes

  Рет қаралды 115,748

Red Stapler

Red Stapler

Күн бұрын

Пікірлер: 68
@cjmaaz
@cjmaaz 5 жыл бұрын
Sometimes KZbin recommendations make me happy. I got to know about an amazing channel today.
@elhamuddin.mahmoodi
@elhamuddin.mahmoodi 5 жыл бұрын
It’s a white stapler by the way
@snowman_web_design_development
@snowman_web_design_development 5 жыл бұрын
😂😂🤣
@rudethunder6640
@rudethunder6640 4 жыл бұрын
I think it's all about "z-index" css property
@mateuszabramek7015
@mateuszabramek7015 4 жыл бұрын
@Mr X it could be and browser support would be better.
@destino1930
@destino1930 4 жыл бұрын
it doesnt seem to work for me. i did just as you showed in the video but the mask just covers up the headline and i dont know how to fix it...
@serjmarkelov9915
@serjmarkelov9915 4 жыл бұрын
Check z-index property And if you set it already, then check that element - it's suppose to have position:relative/fixed/absolute
@antjestiller9846
@antjestiller9846 3 жыл бұрын
@@serjmarkelov9915 I have the same Problem. I tried playing with the z-index...still...I cannot fix it. Any suggestion?
@serjmarkelov9915
@serjmarkelov9915 3 жыл бұрын
@@antjestiller9846 what is "position" property of the element that you're trying to z-index?
@brettwainscott1165
@brettwainscott1165 3 жыл бұрын
Same Problem here. Has anyone found a solution?
@antjestiller9846
@antjestiller9846 3 жыл бұрын
@Red Stapler any chance you can help out with this. I have not figured it out yet.
@chukwudiedupractical2173
@chukwudiedupractical2173 3 жыл бұрын
I just like your voice...it's just calming 😌
@NavyCuda
@NavyCuda 2 жыл бұрын
Do you have anything on a number of elements sharing the same background image so that they're all aligned to the same position? I have a nav bar in a header, the header has a background image, the nav bar has a background color and is on top of the header. When I hover on a link, I want the link to show the background from the header, in the correct orientation.
@manelariapala8182
@manelariapala8182 5 жыл бұрын
Hi can this be scalable for a responsive background?
@whateverlulz9215
@whateverlulz9215 2 жыл бұрын
can you just make it with z-index?
@creative216
@creative216 5 жыл бұрын
Amazing job! So so helpful! I enjoy the work you’re doing and your tutorials are great and allow the viewers to build on top of them!
@guillermomazzari4983
@guillermomazzari4983 2 жыл бұрын
how do I do this if I dont have photoshop?
@bubbagee4853
@bubbagee4853 5 жыл бұрын
So amazing yet so simple as well
@stevePurvis1
@stevePurvis1 4 жыл бұрын
Thank you, You make really great tutorials.
@dvirhanum9530
@dvirhanum9530 4 жыл бұрын
Why to use svg in the first place? What are the advantages?
@AdrianTschubarov
@AdrianTschubarov Жыл бұрын
Why you just dont use z-index?
@scooble
@scooble 4 жыл бұрын
How do you make a graduated mask which fades the opacity either from opaque to transparent or vice versa?
@boppitybip236
@boppitybip236 3 жыл бұрын
png mask
@stevedossin4926
@stevedossin4926 5 жыл бұрын
Real nice and simple tutorial. Thanks !!
@lemasch01
@lemasch01 4 жыл бұрын
Really cool! Thank you very much! Is it also like this in Firefox? Or how do I make this for Firefox?
@gaganmanjunath5917
@gaganmanjunath5917 3 жыл бұрын
I’m getting a CORS policy error in chrome
@teoiu7821
@teoiu7821 Жыл бұрын
the mask ends up covering the headline , anyone know how to fix it ?
@Alex-hm3uk
@Alex-hm3uk 5 жыл бұрын
Why need mask? Png + Z-index
@RedStapler_channel
@RedStapler_channel 5 жыл бұрын
Good question. The advantage of CSS mask is: 1) Both methods need to load 2 images. But mask image size is much smaller (significantly if it's svg) 2) Mask actually "clip" html element to any shape while z-index method just position itself on top. This means you can't select or interact with the element underneath it. 3) z-index method will mostly need to rely on absolute position which might be difficult for some page structure However, the huge disadvantage is browser support as mask doesn't work on IE :)
@akashfunde
@akashfunde 5 жыл бұрын
Which code editor are you using ?
@RedStapler_channel
@RedStapler_channel 5 жыл бұрын
visual studio code
@albertmontagutcasero2129
@albertmontagutcasero2129 4 жыл бұрын
min 3:00 start the mask
@elliemay1748
@elliemay1748 4 жыл бұрын
The same thing can be made without mask, what is this useful for?
@RedStapler_channel
@RedStapler_channel 4 жыл бұрын
scalability, faster loading time, svg path can also be animated/modify with javascript for dynamic mask.
3 жыл бұрын
simply, it's 2 layers of imgs that stay from below and above of the text @@
@ionescumihail41
@ionescumihail41 4 жыл бұрын
Man , you know what would be cool to create ? A video tutorial that when you explain when you hover the mouse over a building it goes up if you know what i mean , subscribe and liked your videos , good work i see you have lot of experience !!
@skyleradd1485
@skyleradd1485 4 жыл бұрын
Ionescu Mihail I would love that
@DiegoAlencar8
@DiegoAlencar8 4 жыл бұрын
If i understood it right, it would be better to create a photo montage mixing several building photos and several layers of sea of clouds, maybe done with custom photoshop brushes, and then export each one separated as png transparent. Then, it would be necessary to set the position of each one inside the html, setting the z-index correctly and animating it with a class to change the position of it when hover (using transition property). With javascript, would be necessary to set a mouse over event for every building which would toggle the class that animates the building position. Maybe it's not the best approach cause of the total weight of images it would create. Maybe using the canvas tag and load images inside with ajax requests... don't know, It's something to think about...
@LinOGGaming
@LinOGGaming 5 жыл бұрын
Wow amazing video!
@alfchlopecki7673
@alfchlopecki7673 5 жыл бұрын
Great job.
@pashka3k
@pashka3k 5 жыл бұрын
Amazing! Like your tutorials
@RockstahRolln
@RockstahRolln 5 жыл бұрын
Really amazing!!
@suryadisamudra8097
@suryadisamudra8097 5 жыл бұрын
Simply Tutorial.. great
@jerryjeremy4038
@jerryjeremy4038 4 жыл бұрын
As always, genuis
@mariolopes6262
@mariolopes6262 5 жыл бұрын
Muito legal!
@theMadZakuPilot
@theMadZakuPilot 5 жыл бұрын
Awesome
@99danwil
@99danwil 3 жыл бұрын
go bang iwan go bang iwan
@noorm8380
@noorm8380 5 жыл бұрын
It is a white stapler on a red background 😂
@noorm8380
@noorm8380 5 жыл бұрын
Or rather "The Missing Red Stapler"
5 жыл бұрын
Genio!!
@TheAngerman77
@TheAngerman77 4 жыл бұрын
Dope
@msvmanikantasrivishnu7788
@msvmanikantasrivishnu7788 5 жыл бұрын
Super
@anfas184
@anfas184 3 жыл бұрын
fantaste !!!
@h.nazmulhassanrakib5058
@h.nazmulhassanrakib5058 2 жыл бұрын
didn't understand anything. you are doing quickly and didn't explain what the result after applied mask.
@furbi963
@furbi963 5 жыл бұрын
Tus tutoriales siempre tan buenos, saludos (. ❛ ᴗ ❛.)
@kaychen4996
@kaychen4996 4 жыл бұрын
I thik maybe this tutorial is too simple for most subscribers :D
@jamesthedude6927
@jamesthedude6927 3 жыл бұрын
until chrome doesn't want to work xD
@jamesthedude6927
@jamesthedude6927 3 жыл бұрын
and OFCOURSE chrome just won't work with it, F you Google xD
@playstore-so2xm
@playstore-so2xm 5 жыл бұрын
Great fan of your art and tips&tricks. However, I have a wish. Sir, Could you please make a tutorial playlist on Wordpress for making an E-commerce website and deploying it or making a basic photoshop tutorial? Please fulfill my wish. I am your regular viewer and subscriber.
@RedStapler_channel
@RedStapler_channel 5 жыл бұрын
building an ecommerce website is not a mere simple tutorial. this involve all levels of dev stacks. Despite worked on some projects myself, I have to admit I'm not confident enough to create a tutorial. It will do more harm than good :)
@fahd4007
@fahd4007 4 жыл бұрын
this is not mask its overlapping
@ayushkarir5377
@ayushkarir5377 5 жыл бұрын
You could have it positioned absolute
@dream_boy_
@dream_boy_ 5 жыл бұрын
1 st viewer
@DevMoSofi
@DevMoSofi 5 жыл бұрын
Awesome
mask-image lets you do some really cool stuff
6:35
Kevin Powell
Рет қаралды 99 М.
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,9 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 14 МЛН
10 Stunning CSS 3D Effect You Must See
3:00
Red Stapler
Рет қаралды 1,5 МЛН
Animated Responsive Navbar with CSS - Plus Other Useful Tricks
11:40
Realistic Water Effect without JavaScript -  HTML/CSS Only
4:47
Red Stapler
Рет қаралды 199 М.
Все уровни Благосостояния за 10 минут
10:49
Объяснитель
Рет қаралды 10 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 985 М.
Create Crazy 3D Image Slider Effects Using CSS Only
14:07
Lun Dev
Рет қаралды 524 М.
10 modern layouts in 1 line of CSS
21:39
Chrome for Developers
Рет қаралды 1,1 МЛН
How to use mix-blend-mode, and how to avoid problems with it
13:16
Kevin Powell
Рет қаралды 76 М.
Learn To Build An SVG Animation With CSS
18:32
developedbyed
Рет қаралды 755 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 14 МЛН