I have a transparent .png image of crossing lines. If the drop-shadow
CSS filter
is applied, only the lines drop shadow, not the bounding rect (it's not the same as box-shadow
).
When I apply both drop-shadow
filter and transform: rotate
, Chrome and FF draw the shadow first, then rotate the resulting image (merged with the shadow). I want the rotated image to drop shadow instead. (As if there is a static light source, when the image rotates).
Is it possible in pure CSS?
The only solution I see is JS trigonometrical calculation of the shadow parameters every time the image rotates.
Regards,