I'm trying to use this code I found online to make a moving image banner, but my problem is that I can't seem to get it to scroll vertically. Right now, only the first picture is moving, and I'm not sure why. Here is the link to the original code.
Here's what I have so far.
CSS:
<style>
body {
background: url('images/dark_geometric.png');
}
#container {
width: 800px;
height: 705px;
overflow: hidden;
}
.photobanner {
height: 233px;
width: 3550px;
margin-bottom: 80px;
}
/*keyframe animations*/
.first {
-webkit-animation: bannermove 30s linear infinite;
-moz-animation: bannermove 30s linear infinite;
-ms-animation: bannermove 30s linear infinite;
-o-animation: bannermove 30s linear infinite;
animation: bannermove 30s linear infinite;
}
@keyframes "bannermove" {
0% {
margin-top: 0px;
}
100% {
margin-top: -2125px;
}
}
@-moz-keyframes bannermove {
0% {
margin-top: 0px;
}
100% {
margin-top: -2125px;
}
}
@-webkit-keyframes "bannermove" {
0% {
margin-top: 0px;
}
100% {
margin-top: -2125px;
}
}
@-ms-keyframes "bannermove" {
0% {
margin-top: 0px;
}
100% {
margin-top: -2125px;
}
}
@-o-keyframes "bannermove" {
0% {
margin-top: 0px;
}
100% {
margin-top: -2125px;
}
}
</style>
HTML:
<body>
<div id="container">
<div class="photobanner">
<img class="first" src="images/rsz_event1.png" alt="">
<img src="images/rsz_event2.png" alt="">
<img src="images/rsz_event3.png" alt="">
<img src="images/rsz_event4.png" alt="">
<img src="images/rsz_event5.png" alt="">
<img src="images/rsz_event6.png" alt="">
<img src="images/rsz_event7.png" alt="">
<img src="images/rsz_event8.png" alt="">
<img src="images/rsz_event1.png" alt="">
<img src="images/rsz_event2.png" alt="">
<img src="images/rsz_event3.png" alt="">
<img src="images/rsz_event4.png" alt="">
</div>
</div>
</body>
If someone could help point me in the right direction, I would really appreciate it. Just started learning.