I don't why but the transform I am applying to the < a> tag does not work in firefox. works fine in chrome, opera, ie and safari. I am using it in my wordpress site like this
<a id="spinner" href="<?php echo esc_url(home_url()); ?>"><?php bloginfo('name');?></a>
here's an example of a < div> and a < a> which works fine in other browsers than firefox.
http://jsfiddle.net/6HCRs/344/
here's my code
/* all other browsers */
@keyframes spinner {
from {
-moz-transform: rotateY(0deg);
-ms-transform: rotateY(0deg);
transform: rotateY(0deg);
}
to {
-moz-transform: rotateY(-360deg);
-ms-transform: rotateY(-360deg);
transform: rotateY(-360deg);
}
}
#spinner {
-webkit-animation-name: spinner;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
-webkit-animation-duration: 5s;
animation-name: spinner;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-duration: 5s;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
-ms-transform-style: preserve-3d;
transform-style: preserve-3d;
}
#spinner:hover {
-webkit-animation-play-state: paused;
animation-play-state: paused;
}