CSS Animations not working in Firefox - pseudo

Daniel Benzie

I have some CSS animations that will not work in Firefox. They are applied to a pseudo element (:after) and all work fine in every other browser.

The animations are applied here

:after
{
    display:block;
    background:url('../img/snow.png'), url('../img/snow2.png') ;
    -webkit-animation: snow 15s linear infinite;
    -moz-animation: snow 15s linear infinite;
    -ms-animation: snow 15s linear infinite;
    animation-name:snow;
    animation-duration:15s;
    animation-timing-function:linear;
    height:500px;
    width:100%;
    content:'';
    position:absolute;
    top:0;
    left:0;
}

And the animations themselves are here:

@-webkit-keyframes snow {
 0% {background-position: 0px 0px;}
 100% {background-position: 0px 1000px, 0 500px;}
}
@keyframes snow {
 0% {background-position: 0px 0px;}
 100% {background-position: 0px 1000px, 0 500px;}
}

@-moz-keyframes snow {
 0% {background-position: 0px 0px;}
 100% {background-position: 0px 1000px, 0 500px;}
}
@-ms-keyframes snow {
 0% {background-position: 0px 0px;}
 100% {background-position: 0px 1000px, 0 500px;}
}

Any help or advice would be greatly appreicated!

Boris Zbarsky

Your issue is that your keyframes have different-length lists for background-position. It looks like Gecko doesn't allow interpolation between different-length background-position lists. I filed https://bugzilla.mozilla.org/show_bug.cgi?id=945600

In the meantime, simply using

0% {background-position: 0px 0px, 0px 0px;}

in your keyframes should make this work, I believe.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Css Animations not working in chrome but working in firefox?

From Dev

CSS3 animations not working in Firefox

From Dev

CSS3 animations working only in Firefox

From Dev

CSS3 animations working only in Firefox

From Dev

CSS3 animations not working in Firefox

From Dev

Active Pseudo CSS class not working for textbox in Firefox

From Dev

Why are my animate.css animations working in Chrome but not in Firefox?

From Dev

Hover.css Library Animations not working in Firefox or Edge, but works in chrome?

From Dev

Disable CSS animations on Firefox

From Dev

CSS pointer-events in pseudo element not working in Firefox

From Dev

CSS pointer-events in pseudo element not working in Firefox

From Dev

CSS pseudo element not working

From Dev

CSS :not pseudo code not working

From Dev

Firefox ::after pseudo element not working

From Dev

My CSS animations are not working in iOS

From Dev

CSS Animations not working (previously worked)

From Dev

CSS a:active pseudo class not Working

From Dev

Transitions on pseudo-elements not working on firefox browser

From Dev

Multiple animations with CSS3 not working as expected

From Dev

AngularJS - CSS animations are only working one way

From Dev

Knockout beforeRemove and CSS animations not working together in IE

From Dev

CSS only loading animations not working as expected

From Dev

CSS3 animations not working on angular 4

From Dev

CSS Hyphens Not Working in Firefox?

From Dev

Overflow CSS not working with firefox

From Dev

CSS perspective not working in Firefox

From Dev

CSS Mask not working on firefox

From Dev

CSS animation Not Working in Firefox?

From Dev

Firefox CSS not working correctly

Related Related

HotTag

Archive