+ 4

[SOLVED] How to show drop-shadow for clipped image?

My current scripts : .stone{ width:16px; width:16px; clip-path:circle(50% at 50% 50%); position:absolute; } .soloStone{ filter:drop-shadow(0px 0px 5px #fff); } The circular images have no drop-shadow visual effect; However if i remove the clip-path, I can see the drop-shadow around the square boundary of the images.

17th Dec 2018, 9:51 AM
Gordon
Gordon - avatar
5 Respostas
+ 2
Make .soloStone as parent of img tag https://code.sololearn.com/Ww44mpGHR6oT/?ref=app
17th Dec 2018, 10:47 AM
Calviղ
Calviղ - avatar
+ 2
But my code is my contest code🤔 Isn't the part in my question enough to understand my situation?
17th Dec 2018, 10:01 AM
Gordon
Gordon - avatar
+ 1
Satnam Singh i changed line 758 to filter:drop-shadow(5px 5px 5px #fff); still no visible shadow😔
17th Dec 2018, 10:24 AM
Gordon
Gordon - avatar