DEV Community

loading...
Cover image for Applying shadow to transparent images

Applying shadow to transparent images

madeelahsan profile image M Adeel Ahsan ・1 min read

box-shadow doesn't work well with transparent images. The image will show up wrapped in a rectangle.

So in order to tackle this situation, we can use the filter CSS property.

Discussion (0)

pic
Editor guide