Ustaw sobie na .wyprzedaz_zd tło czarne i później na hover ustaw przezroczystość obrazka np na 0.7
Rozwiązanie jQuerry
Kopiuj
$('.wyprzedaz_zd').hover(function() {
$(this).find('img').fadeTo(500, 0.5);
}, function() {
$(this).find('img').fadeTo(500, 1);
});
Kopiuj
.wyprzedaz_zd{
background: black;
}
Rozwiązanie CSS
Kopiuj
.wyprzedaz_zd img {
-webkit-transition: all 0.5s linear;
-moz-transition: all 0.5s linear;
-ms-transition: all 0.5s linear;
-o-transition: all 0.5s linear;
transition: all 0.5s linear;
}
.wyprzedaz_zd:hover img {
opacity: 0.7;
}
https://jsfiddle.net/c0y0ep5w/