Having some trouble with this animation not working in Firefox.
I'm triggering the animation using JavaScript after a delay like so:
document.getElementById('my_id').style.webkitAnimationPlayState = "running";
I've also attempted:
style.animationPlayState
Interestingly, changing the background-color animation within the same file works perfectly fine. Could it be an issue with opacity specifically on Firefox?
#my_id {
opacity: 0;
animation: animation 1s;
animation-fill-mode: forwards;
animation-play-state: paused;
-webkit-animation: animation 1s;
-webkit-animation-fill-mode: forwards;
-webkit-animation-play-state: paused;
}
@keyframes animation {
0% {opacity: 0;}
50% {opacity: 1;}
100% {opacity: 0.2;}
}
The CSS snippet above pertains to the element being animated.