I am trying to figure out if I can add an overlay to an image like a tint and change the opacity without adding background color. I had no luck so I thought I would ask here
JSFiddle Demo
HTML:
CSS:
.image-holder { display:inline-block; position: relative; } .image-holder:after { content:''; top: 0; left: 0; z-index: 10; width: 100%; height: 100%; display: block; position: absolute; background: blue; opacity: 0.1; } .image-holder:hover:after { opacity: 0; }