Add circular fading opacity (vignette effect) to images in CSS
问题 I want to give circular opacity to an image using CSS. I know I can achieve opacity on images like this: .circle img { opacity: 0.4; filter: alpha(opacity=40); } I know I can achieve circular images like this: .circle { border-radius: 50%; display: inline-block; } .circle img { border-radius: 50%; display: block; } I want somehow to merge the two things above and apply the opacity only for the edges of the image, so the center of the image gets almost nothing from the opacity tag. I have