I have a pretty simple animation that changes the background image of a div.
@-moz-keyframes slider {
0% { background-image: url('../img/slide1.jpg');}
25% { background-image: url('../img/slide2.jpg');}
50% { background-image: url('../img/slide2.jpg');}
75% { background-image: url('../img/slide1.jpg');}
100% { background-image: url('../img/slide1.jpg');}
}
#mydiv {
height: 400px;
width: 500px;
background-size: cover;
-moz-animation: slider 10s infinite;
}
/*I obviously have the -o-, -webkit- and normal there too, just keeping it short*/
It works fine in Chrome but won't work in Firefox (or IE). The background just stays white. The other animations I have (moving text and stuff) work fine in both, and they are written the same way. This one just won't. Any ideas?