Skip to content Skip to sidebar Skip to footer

"animation" In Css3 Not Working In Mozilla. What To Do?

I have used keyframe of css3 but in case of mozilla its not working. It is working fine with google chrome. I used both @keyframe and @-webkit-keyframe, also same with 'animation'.

Solution 1:

You should be specifying mozilla (moz) as well like below:

@-webkit-keyframes NAME-YOUR-ANIMATION {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@-moz-keyframes NAME-YOUR-ANIMATION {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@-o-keyframes NAME-YOUR-ANIMATION {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes NAME-YOUR-ANIMATION {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

Post a Comment for ""animation" In Css3 Not Working In Mozilla. What To Do?"