Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS animate css not working on firefox Re: animate css not working on firefox

#138815
CrocoDillon
Participant

I think you need curly braces instead of parentheses:

.animated:hover {
-webkit-animation: flash 1s;
-moz-animation: flash 1s;
-o-animation: flash 1s;
animation: flash 1s;
}
@-webkit-keyframes flash {
0%, 50%, 100% {opacity: 1;}
25%, 75% {opacity: 0;}
}
@-moz-keyframes flash {
0%, 50%, 100% {opacity: 1;}
25%, 75% {opacity: 0;}
}
@-o-keyframes flash {
0%, 50%, 100% {opacity: 1;}
25%, 75% {opacity: 0;}
}
@keyframes flash {
0%, 50%, 100% {opacity: 1;}
25%, 75% {opacity: 0;}
}