I have a slideshow the fact is that the images are very bright and what I need is that when I upload an image to the seconds, just before the text appears, a background is placed on top of the image as a background
, I did but I want to do it in seconds try with animate
of jquery
, and transition
of css
but I can not do it here I send you the code
if(g.hasClass("slider_thumbs")){ // Esta haciendo el cambio de imagen
var k=$j("div.item").index($j("div.item.active")[0])+1 // Para saber cuando cambia de imagen en el slider
$j("div.item.active").addClass("element_hovered");
}
<div id="image_1" class="image" style="
background-image:
linear-gradient(
rgba(0, 0, 0, 0.3),
rgba(253, 249, 249, 0.3)
),
url(img/widget3/Widget-3.jpg); background- size:cover">
</div>
The code javascript
let's say it's the code you use just change the image, so that could make the modification the issue is that the div
is perfect because it has a black background and the letters are appreciated, but What I need is for that background to be placed in seconds, not instantly, that is, I want the Linear-gradient to work within seconds of having loaded that image.