It’s probably because I haven’t been getting enough sleep, but I just can’t figure this out. I’m trying to make a page where you have multiple videos, and then there’s a div on top that appears suddenly and fades as the video is loading, all of this onClick. I had it earlier today, but now it’s not working. The part of the function is
$('#hh').animate({
opacity: 1
}, 0, function() {
myVideo.src = videos[numb];
myVideo.load();
myVideo.play();
$('#hh').fadeOut(400);
});
so, why isn’t this working?
1 Answer