CSS Animation looping in firefox

Liam

I have an animated element on a webpage that is to rotate once and then stop.

This works fine in chrome/ie but in firefox the loop is infinite...

-webkit-animation:.75s rotateLast ease;
-webkit-animation-fill-mode:forwards;
-moz-animation:.75s rotateLast ease;
-moz-animation-fill-mode:forwards;
animation:.75s rotateLast ease;
animation-fill-mode:forwards;

Can anybody see what I may be doing wrong or has anybody experience this before?

@-webkit-keyframes rotateFirst {
    0% {-webkit-transform:rotate(180deg);}
    100% {-webkit-transform:rotate(0deg);opacity:1}
}

@-webkit-keyframes rotateLast {
    0% {-webkit-transform:rotate(-180deg);}
    100% {-webkit-transform:rotate(0deg);opacity:1}
}

@keyframes rotateFirst {
    0% {transform:rotate(180deg);}
    100% {transform:rotate(0deg);opacity:1}
}

@keyframes rotateLast {
    0% {transform:rotate(-180deg);}
    100% {transform:rotate(0deg);opacity:1}
}

@-moz-keyframes rotateFirst {
    0% {transform:rotate(180deg);}
    100% {transform:rotate(0deg);opacity:1}
}

@-moz-keyframes rotateLast {
    0% {transform:rotate(-180deg);}
    100% {transform:rotate(0deg);opacity:1}
}
SW4

Add:

animation-iteration-count:1;
-moz-animation-iteration-count:1;
-webkit-animation-iteration-count:1;

From MDN

The animation-iteration-count CSS property defines the number of times an animation cycle should be played before stopping.

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 animation Bug in Firefox

From Dev

CSS Animation on Mozilla Firefox

From Dev

CSS animation Not Working in Firefox?

From Dev

CSS Animation on Mozilla Firefox

From Dev

CSS animation rules disappear in Firefox resulting in no animation

From Dev

Problems with CSS Flip animation in Firefox

From Dev

Debugging CSS animation performance on Firefox

From Dev

CSS animation and transition are not cooperating in Firefox

From Dev

CSS Animation works in Chrome, but not in FireFox

From Dev

CSS Animation works in Chrome, but not in FireFox

From Dev

Animation is not looping

From Dev

CSS3 keyframe animation not working in Firefox

From Dev

Why CSS hover animation work differently of Firefox?

From Dev

CSS3 animation background not work on firefox

From Dev

CSS3 animation is not working on Mozilla firefox

From Dev

CSS3 animation issue in Firefox and IE

From Dev

This animation(css3) not working on Firefox

From Dev

Pausing a CSS animation with Jquery glitches in Firefox

From Dev

CSS3 animation is not working in Firefox

From Dev

CSS3 Animation Not Working Firefox

From Dev

CSS transition animation on hover not woking in Firefox

From Dev

Css zoom animation not working without Firefox

From Dev

CSS3 animation behaves different in Firefox

From Dev

CSS animation does not work on Firefox and IE

From Dev

This animation(css3) not working on Firefox

From Dev

CSS3 animation event not fired on Firefox

From Dev

CSS3 animation not working outside Firefox

From Dev

css3 animation not working well on Firefox

From Dev

CSS transform scale animation not working in Firefox