I'm working on an app in PHP. There are some pictures displayed, and when hovering it, it displays a new image (which is in reality the same image but with a blue filter added manually).
The fact is, I don't want to display a new image with a blue filter, but I want to put the filter directly on the image when hovering it for not having to fetch a new image.
.home-container .theme1{
background-size: cover;
background: url('../img/myImage') no-repeat center;
}
.home-container .theme1{
background-size: cover;
background: url('../img/myImageWithBlueFilter') no-repeat center;
}
How can I display the same image with a blue filter, while not completely obliterate the colors of the image (with the filter option in css for exemple).
Thank you !
I searched for the answer on the internet.