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 searched for hours but found nothing.
Without opacity: http://jsfiddle.net/8w6szf84/47
With opacity: http://jsfiddle.net/8w6szf84/48/ -> bad opacity, want only the edges to fade...
Do I need to use Javascript on this? Any suggestions?