Тёмный

Multiple elements with one shadow with CSS 

Kevin Powell
Подписаться 943 тыс.
Просмотров 29 тыс.
50% 1

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 55   
@Fliteska
@Fliteska 2 года назад
I refuse to be a frontend friend, you know it is really friend and friends! Great video as always
@KevinPowell
@KevinPowell 2 года назад
🤣🤣
@pendaco
@pendaco 2 года назад
For the longest time I heard just that until someone posted about it in the comments 😜
@JuanCardona
@JuanCardona 2 года назад
I'd buy a tee-shirt that says either.
@lukaszbialy7364
@lukaszbialy7364 2 года назад
The thumbnail should say: One shadow, to rule them all!
@KevinPowell
@KevinPowell 2 года назад
Haha, thanks for the suggestion, I might update it if the video doesn't perform great, lol.
@jtsimoes
@jtsimoes 2 года назад
Using filter: drop-shadow instead of box-shadow is also very useful when dealing with shadows on PNG images with transparency. Otherwise the shadow will not adapt to the transparency of the PNG and it will be around the square/rectangular frame of the image
@KevinPowell
@KevinPowell 2 года назад
100%!
@Imperial_Squid
@Imperial_Squid 2 года назад
Ooooh, that's a really neat idea!!
@saFubar
@saFubar 2 года назад
tbh I think the "floating transparent" box shadow that included the padding on the example container looks pretty cool.
@w1pe0ut
@w1pe0ut 2 года назад
Even war in my country couldn't stop me from learning these cool tricks:D
@AbdicateDotNet
@AbdicateDotNet 2 года назад
@Kevin Great emphasis on "font-end friend" 👏 Great video - as usual!!
@n_mckean
@n_mckean 2 года назад
He reads the comments :)
@sarahwbs
@sarahwbs 2 года назад
The auto captions *still* don't get it, but he's trying so hard!
@himanshushekhar3304
@himanshushekhar3304 2 года назад
Your every video makes me fell in love with css more and more.
@colton3507
@colton3507 2 года назад
Intimately too
@JoeBonez
@JoeBonez 2 года назад
Awesome video. I’ve only used filter: inverse(1) when putting dark logo images on a dark background (and vice versa) because it seems (to me, anyway) that simply inverting an image should be faster than playing with blending. Very cool to see these other filters.
@PetarTodorov-k6x
@PetarTodorov-k6x 2 года назад
Kevin, I have learned a lot about CSS from your videos so thank you. I have one request for you can you make a video about theming in CSS and SASS? What is your opinion do we need to load a separate file in DOM for every theme, or we can have it all in our styles.css file. Do we need to use mixins if we are using SASS and do you use "prefers-color-scheme" for your works? Thank you in advance.
@shahination
@shahination 2 года назад
Hey Kevin, as always, a wonderful and inspiring video 👍❤️ I wonder if you could show us how to create a shadow around a column (middle column) inside a table which also has overlapping shadow problems. I can't find a good solution for that. I would appreciate a solution and explanation by you or any good source or tutorial suggestion 😊 Thanks alot 🙂
@edwardhandrich6043
@edwardhandrich6043 2 года назад
Great video as usual. The 'Fun CSS Effects' playlist doesn't show up on your channel. How do I get to the playlist? The in-video link just loads a video.
@gamerel5028
@gamerel5028 2 года назад
Hey Kevin - i am struggeling with - the xtra page in it with a todo list in it. I have a lot of grids, like you teached us, and in one single one, i added an . In it should work the todo list. i call the frames by a dropdown menue. Every other site in it works perfektly, but not the todolist by adding an entry. I studied stackoverflow and W3School but i didn´t find any anser to my problem. Could you help me please, or this community here? Thx for all what will be
@bobbyG883
@bobbyG883 2 года назад
Hi Kevin, Can you make a video on the masking video background. I have. Video background I want to mask it with some words. If you already have can you please share the link? Thank you
@x-Mick-x
@x-Mick-x 2 года назад
I know I'm probably really late on this one, but I just noticed the banner .helping-you-write, .css-with-confidence { etc: "etc". I like it.
@ravi-cx3cb
@ravi-cx3cb 2 года назад
Hi Kevin, I wanted to know is there any way that without using html only by css we call function from ts file. I know question look idiotic but I facing one issue where class and id are deprecated. That's why I take class from browser and style them and at one place I want to do some Javascript code but don't know how to call that function. I hope my explanation is good and clear.
@MatthewMichalsky
@MatthewMichalsky 2 года назад
Great video! Lovely content as per usual. But honest to god, you really need to change that introduction because it’s getting creepy to the point I’m skipping the beginning of your videos
@Imperial_Squid
@Imperial_Squid 2 года назад
Ngl, even though you enunciate the *hell* out of it I still heard it at "friend and friends" 😂😂 Also, since April Fools is coming up, you should totally actually say "friend and friends" for a video of you put one out then and see if anyone notices 😂
@TunnelVision
@TunnelVision 2 года назад
Blur has limited browser compatibility. Won't work on firefox
@mrspike847
@mrspike847 2 года назад
so, when i do the grayscale filter it just standing as it is, i was putting the animation, it s standing the same, and the text only go behind the image. solve?
@sunyebayur3744
@sunyebayur3744 2 года назад
Thanks you kevin great videos, i can learn more about CSS 👍
@cintron3d
@cintron3d 2 года назад
"friend and friends" was a more inclusive greeting, I miss thinking I was hearing it 😂
@parekhnirajj123
@parekhnirajj123 2 года назад
Sir plz make video on future css node css and sass and explain basically
@wernerfarnung6986
@wernerfarnung6986 2 года назад
You did it with this video, I fell in love with CSS
@MrMairu555
@MrMairu555 2 года назад
Oh! It's Kevin from the future! 😲🤣🤣
@conceptrat
@conceptrat 2 года назад
Just out of interest. Can you define multiple drop shadows in the one filter chain? So one would surround the other.
@wolframzell6162
@wolframzell6162 2 года назад
You can not put multiple shadows like with box-shadow, but you can put multiple drop-shadow in a filter. But they will stack a bit unexpected.
@thecatmanager
@thecatmanager 2 года назад
The captions refuse to say front-end friends
@badcatdesign
@badcatdesign 2 года назад
It's too bad that Safari (even most recent Tech Preview) and mobile Safari all break the drop-shadow filter. I've reported this to Apple, but it remains broken.
@melissabazany2363
@melissabazany2363 2 года назад
I make sure I watch every video you put out; all of your content is so beneficial. Keep it up and THANK YOU!
@rebelshadowrm
@rebelshadowrm 2 года назад
As an interesting, or important note, order matters. I swear I only ever use filter in the strange use cases though. Something like turning black into some other color with invert, sepia, saturate, hue-rotate. Usually on something you can't change, like being lazy with a Base64 svg uri saved as black. Oh as a secondary interesting note, be careful filtering things on top of filtered items, especially if there are transitions. Blink doesn't like it. Quantum is fine though.
@filipslezak5152
@filipslezak5152 2 года назад
As always great content :D
@VitoOnYoutube
@VitoOnYoutube 2 года назад
Thanks for another nice and informative video! Quick question: isn’t the drop-shadow filter hardware accelerated? If yes, it could spare us the whole pseudo element hack.
@user-ms8ei9le7x
@user-ms8ei9le7x 2 года назад
👽 🕶 🕳 Kevin thank
@proteus1
@proteus1 2 года назад
Never come across filter before.
@shahbajalam2076
@shahbajalam2076 2 года назад
Notification came and left other works to watch you.....😁😁😁
@FYYTWYFN
@FYYTWYFN 2 года назад
A good use case for the shadow filter is also table rows and cells where the box shadow is not working because it needs display block / inline block.
@sahildas.
@sahildas. Год назад
freind and freinds 🗿🗿🗿
@Tobawa2601
@Tobawa2601 2 года назад
Is there a way to create a contour in a similiar way, so that it wraps around the objects in the example-div?
@KevinPowell
@KevinPowell 2 года назад
Not that I can think of... If we could use spread with this, it would sort of be possible with a bit of a hack, but we can't do that, so I don't think there is another option 🤔
@Tobawa2601
@Tobawa2601 2 года назад
@@KevinPowell Thanks for the reply and your videos! What a pity that spread isn't supported on filter-shadows and that there is no other way.
@superminum135
@superminum135 2 года назад
This is cool
@osleff
@osleff 2 года назад
Good and concise explanation, thanks!
@Ayfri
@Ayfri 2 года назад
Is there a way to have a border like the drop-shadow ?
@lucmon98
@lucmon98 2 года назад
Does a filter work on a Cricle or a triangle?
@KevinPowell
@KevinPowell 2 года назад
Sure does :)
Далее
Create interesting blob shapes with CSS
5:15
Просмотров 78 тыс.
CSS position deep dive
28:14
Просмотров 99 тыс.
Dynamic numbering with CSS counters
12:04
Просмотров 15 тыс.
The secret to mastering CSS layouts
17:11
Просмотров 283 тыс.
Please stop using px for font-size.
15:18
Просмотров 171 тыс.
Are you using the right CSS units?
6:30
Просмотров 457 тыс.
@property Is One Of The Coolest New CSS Features
10:41
Flexbox or grid - How to decide?
18:51
Просмотров 729 тыс.
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Просмотров 350 тыс.