CSS3 animation and background-image in Firefox

后端 未结 3 1911
予麋鹿
予麋鹿 2020-12-06 08:54

I have a bit of CSS3 animation in my website, and it works fine on Safari but when I run the site in Firefox, it doesn\'t animate. Here is the code:

.ad{
pos         


        
相关标签:
3条回答
  • 2020-12-06 09:15

    The ability to interpolate between background images is a pretty new proposal so far, and not well supported in browsers. Firefox doesn't implement it yet.

    0 讨论(0)
  • 2020-12-06 09:20

    use @-moz-keyframes and -moz-animation to define animation for firefox

    0 讨论(0)
  • 2020-12-06 09:31

    According to the latest working draft of the spec (14 August 2015), background-image is defined as non animatable.

    Then, Firefox is just following the spec, and the behavior of browsers which animate background-image is non-standard and shouldn't be relied on.

    0 讨论(0)
提交回复
热议问题