mistypants
Well-known member
I'm attempting to replace the loading gif with a FontAwesome icon, similar to the spinners shown here: http://fontawesome.io/examples/#spinning
I've successfully replaced the gif with the FontAwesome icon using the following CSS:
However, I'm having some trouble getting the icon to animate. I'm fairly certain you can animate pseudo classes, but this is my first time working with CSS animations besides simple fade ins/outs, so I suspect my animation code is incorrect. Here's what I have:
Would post a link to my board but it's my private test board. Any help is appreciated!
I've successfully replaced the gif with the FontAwesome icon using the following CSS:
Code:
#AjaxProgress.xenOverlay .content:before {
content: '\f013';
font-family: FontAwesome !important;
font-style: normal;
text-align: center;
color: #fff; }
Code:
/* Ajax Progress Indicator */
#AjaxProgress.xenOverlay .content:before {
content: '\f013';
font-family: FontAwesome !important;
font-style: normal;
text-align: center;
color: #fff;
-webkit-animation: spin 2s infinite linear;
-moz-animation: spin 2s infinite linear;
-o-animation: spin 2s infinite linear;
animation:spin 2s infinite linear; }
@-moz-keyframes spin {
0% { -moz-transform: rotate(0deg) }
100% { -moz-transform: rotate(359deg) }
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg) }
100% { -webkit-transform: rotate(359deg) }
}
@-o-keyframes spin {
0% { -o-transform: rotate(0deg) }
100% { -o-transform: rotate(359deg) }
}
@-ms-keyframes spin {
0%{ -ms-transform: rotate(0deg) }
100% { -ms-transform: rotate(359deg) }
}
@keyframes spin {
0% { transform:rotate(0deg) }
100% { transform:rotate(359deg) }
}