I am doing a transition where it fades into transparent white, when a user is hovering an image.
transition
My problem is that I need to change the color, that it
Wrap your image with a span element with a black background.
span
.img-wrapper { display: inline-block; background: #000; } .item-fade { vertical-align: top; transition: opacity 0.3s; -webkit-transition: opacity 0.3s; opacity: 1; } .item-fade:hover { opacity: 0.2; }