alphapeter / fa-svelte

Font Awesome 5 for svelte.js
MIT License
71 stars 3 forks source link

How to apply the class fa-spin for faSpinner? #21

Closed Bighamster closed 3 years ago

Bighamster commented 3 years ago

I'd like to have an animated spinner like:

<i class="fas fa-spinner fa-spin"></i>

Is it possible?

alphapeter commented 3 years ago

Hi! You can add your own CSS style for animation. Somethink like in https://github.com/alphapeter/fa-svelte/issues/20

Maybe the fa-spin could be include with the ability to toggle with a prop though. Or adding a new component, FaSpin for use with spinning icons.

Bighamster commented 3 years ago

Thanks a lot! #20 is great!

I believe that example is worth adding to README ... very useful!