Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Font Awesome spinners icons not spinning

People also ask

How do I rotate font awesome icons?

Use the fa-spin class to get any icon to rotate, and use fa-pulse to have it rotate with eight steps. This works especially well with fa-spinner & everything in the spinner icons category.

Why do some font awesome icons not work?

Are you using Font Awesome Free or Pro? - Some icons are only available in Font Awesome Pro. Double-check that the icon you want is in the version of Font Awesome you're referencing and using. Also, make sure you are using and referencing the right style prefix and supporting files to use Pro icons.

How do I use Font Awesome 5 icons?

To use the Free Font Awesome 5 icons, you can choose to download the Font Awesome library, or you can sign up for an account at Font Awesome, and get a code (called KIT CODE) to use when you add Font Awesome to your web page.

How do I add icons to Font Awesome?

Add Icons to HTML We recommend using <i> element with the Font Awesome CSS classes for the style class for the style of icon you want to use and the icon name class with the fa- prefix for the icon you want to use.


adding fa-spin to the class like this will work:

function NewNum() {
  $("#num1").html("<i class='fa fa-refresh fa-spin'></i>");
}

Another thing to note with fa-spin is it won't work on a display: inline element.

It needs to be display: inline-block or display: block