I'm still quite new to JS and learning it.
I have a bootstrap slider with images on each slides. What I'd want to do is to make the images appear after a small delay on the slide (the slide in which the said image is). So far, I made it only with the first slide and if I apply my class to the other images on the slides, they will appear when the document is ready and not on slide.
My JS looks like that so far:
$(document).ready(function() {
$('.foo').hide().delay(1).fadeIn(2200);
});
As such, everything will fade in after the delay. How can I isolate the fadeIn to apply it only when the user goes to the said slide?
Sorry if I'm not 100% clear, feel free to tell me.