Created
March 10, 2018 09:12
-
-
Save markocupic/0f1022db85c7f144c335a6122c48b0f4 to your computer and use it in GitHub Desktop.
Add fontawesome 5 icon at runtime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See https://fontawesome.com/how-to-use/font-awesome-api#icon | |
var iconDefinition = FontAwesome.findIconDefinition({ | |
prefix: 'fal', | |
iconName: 'circle-notch' | |
}); | |
var icon = FontAwesome.icon(iconDefinition, { | |
classes: 'preloader-icon' | |
}).html; | |
$('body').append(icon); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment