Something I just found out - you can have shadows that follow the outline of a shape within an image, by sticking it into a wrapper element that has a
Say you’ve got a
png image of a shirt with a transparent background. If you apply a normal
box-shadow to it you’ll get a shadow around the whole image, which would look a bit odd.
We can fix that by instead putting the
img into a wrapping element:
and then applying a css
filter to that wrapping element: