What are the ways to replace the black image with white using css with :hover ?
I use this method (not very good, because you need to upload 2 images):
.img { display: block; } .img_hover { display: none; } .box:hover .img { display: none; } .box:hover .img_hover { display: block; } <div class="box"> <img src="https://dummyimage.com/200x200/000/fff&text=black" alt="" class="img"> <img src="https://dummyimage.com/200x200/fff/000&text=white" alt="" class="img_hover"> </div> Maybe there is a way using the filter or some other options? The picture should be exactly inline (not the background) and the effect should be maximally cross-browser.
DXImageTransformfilters for example, but they somehow did not want to work with me - Grundy