i use an animation shown on my page. It works for Chrome and Safari (webkit-Browser) but not for Firefox (moz) and also not for Internet Explorer. I don't know why, but here is my code:
#Area {
-webkit-animation: WriteText 2s;
-moz-animation: WriteText 2s;
animation: WriteText 2s;
}
@-webkit-keyframes WriteText {
0% { background: #fff url('../media/header/header00.jpg'); background-size: 1000px 263px; opacity: 1; }
5% { background: #fff url('../media/header/header01.jpg'); background-size: 1000px 263px; opacity: 1; }
........
100% { background: #fff url('../media/header/header.jpg'); background-size: 1000px 263px; opacity: 1; }
}
@-moz-keyframes WriteText {
0% { background: #fff url('../media/header/header00.jpg'); background-size: 1000px 263px; opacity: 1; }
5% { background: #fff url('../media/header/header01.jpg'); background-size: 1000px 263px; opacity: 1; }
........
100% { background: #fff url('../media/header/header.jpg'); background-size: 1000px 263px; opacity: 1; }
}
@keyframes WriteText {
0% { background: #fff url('../media/header/header00.jpg'); background-size: 1000px 263px; opacity: 1; }
5% { background: #fff url('../media/header/header01.jpg'); background-size: 1000px 263px; opacity: 1; }
........
100% { background: #fff url('../media/header/header.jpg'); background-size: 1000px 263px; opacity: 1; }
}
Other things out of CSS works fine in every Browser, the Content of the Browser-Specific Sections is the same for the animation so i don't know why it doesn't work.
I already tried to write it like this:
#Area {
-webkit-animation-name: WriteText;
-webkit-animation-duration: 2s;
-moz-animation-name: WriteText;
-moz-animation-duration: 2s;
animation-name: WriteText;
animation-duration: 2s;
}
but it doesn't help me.