I am very new to coding, I've barely done anything. But I've been working on a few gifs that I would like to play in sequence over my stream. However, I have no idea how to go about doing this. I've tried various things, but none of it seems to do what I want it to do. Again I have no idea what I'm doing. So I would love all the help I can get in understanding. For instance I have no idea how to use javascript, I've only been dabbling in HTML and CSS (With no success) Well here's my code.
<html>
<head>
<meta http-equiv="refresh" content="20">
</head>
<style>
div {
width: 515px;
height: 94px;
background: Transparent;
animation-duration: 6s;
}
#div1 {animation-delay: 6s;}
#div2 {animation-delay: 12s;}
<body>
<div id="div1" src="sample1.gif">
<div id="div2" src="sample2.gif">
</body>
</html>
The meta part is so that once all the gifs have played through, it will refresh after an amount of time. I'm very aware all of it could be wrong but basically my goal is. Play 'gif 1' once gif 1 is finished pause for 3 seconds then play 'gif 2', once gif 2 is finished, pause for 3 seconds and play 'gif 3' ect. Once all gifs are played, restart whole sequence after 'x' seconds.
I also want them all to play in the same place. when I tried one possible solution they just ended up playing the gif next to the first one. So essentially, gif 2 will replace gif 1 when it plays.
Any help would be amazing. Thank you.