“Animation” in CSS3 not working in mozilla. What t

2019-08-26 21:33发布

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". but its not working I don't know why.

标签: html html5 css3
1条回答
Lonely孤独者°
2楼-- · 2019-08-26 22:17

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; }
}
查看更多
登录 后发表回答