superposition Image d'arrière-plan CSS
.testclass {
background-image: url("../images/image.jpg"), linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5));
background-blend-mode: overlay;
}
/*
Or if you like to add a transparent gray layer over your image or div background
you can use "filter:"
example:
*/
.card img{
width: 100%;
height: 100%;
object-fit: cover;
border: 10px solid #fff;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
border-radius: 5px;
transition: 0.5s;
}
.card img:hover{
transform: scale(1.02);
filter: blur(2px) grayscale(50%);
}
Strange Snake