Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to rebuild fa-spin to control how it works? #191

Closed
o-alquimista opened this issue Jan 2, 2020 · 1 comment
Closed

How to rebuild fa-spin to control how it works? #191

o-alquimista opened this issue Jan 2, 2020 · 1 comment

Comments

@o-alquimista
Copy link

o-alquimista commented Jan 2, 2020

What if I want an icon to only spin when it's hovered, without writing any JavaScript, and using the fa-spin class?

I was thinking maybe I could use your mixins to rebuild the fa-spin class my way, but I'm not sure how to make it work for fa-spin. Is it the same as any other icon class?

@robmadole
Copy link
Member

@o-alquimista your best bet would be to write your own CSS and use the :hover element state. The CSS for fa-spin is pretty straight-forward and easy enough to copy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants