Reputation: 2695
Hello I have this example, it's work fine chrome and opera but not work in firefox
body {
width: 100%;
height: 100%;
background: url('http://www.picz.ge/img/s2/1505/17/1/1b588904a0d2.png');
-webkit-animation: mymove 10s;
/* Chrome, Safari, Opera */
-webkit-animation-iteration-count: infinite;
/* Chrome, Safari, Opera */
-moz-animation: mymove 10s;
-moz-animation-iteration-count: infinite;
animation: mymove 10s;
animation-iteration-count: infinite;
}
@-webkit-keyframes mymove {
from {
background: url('http://www.picz.ge/img/s2/1505/17/1/1b588904a0d2.png');
}
to {
background: url('http://www.picz.ge/img/s4/1505/17/b/b2c36d72aaa6.png');
}
}
@-moz-keyframes mymove {
from {
background: url('http://www.picz.ge/img/s2/1505/17/1/1b588904a0d2.png');
}
to {
background: url('http://www.picz.ge/img/s4/1505/17/b/b2c36d72aaa6.png');
}
}
@keyframes mymove {
from {
background: url('http://www.picz.ge/img/s2/1505/17/1/1b588904a0d2.png');
}
to {
background: url('http://www.picz.ge/img/s4/1505/17/b/b2c36d72aaa6.png');
}
}
Upvotes: 5
Views: 922
Reputation: 15961
You can use a :pseudo element to add a background-image
and change its opacity
demo - https://jsfiddle.net/4x3k7Lxy/4/
Upvotes: 1