-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add Color Options #10
Comments
@andrewmunsell I think it is better to do it in css no? |
Yes, here is how I did it:
|
Here's how to change the colors for each of the spinners: .sk-rotating-plane {
background-color: #FF0000;
}
.sk-double-bounce > .sk-child {
background-color: #FF0000;
}
.sk-wave > .sk-rect {
background-color: #FF0000;
}
.sk-wandering-cubes > .sk-cube {
background-color: #FF0000;
}
.sk-spinner {
background-color: #FF0000;
}
.sk-chasing-dots > .sk-child {
background-color: #FF0000;
}
.sk-three-bounce > .sk-child {
background-color: #FF0000;
}
.sk-circle .sk-child:before {
background-color: #FF0000;
}
.sk-cube-grid > .sk-cube {
background-color: #FF0000;
}
.sk-fading-circle > .sk-circle:before {
background-color: #FF0000;
}
.sk-folding-cube > .sk-cube:before {
background-color: #FF0000;
} |
It'd be really handy to add this to the README and/or provide a single class that would change any type of spinner. I'm a newb at CSS and this was super helpful for me. |
@allancaffee can you PR the README? |
It would be great to have the ability to specify a color for the spinner, even if it were a simple subset of colors (e.g. black, white).
The text was updated successfully, but these errors were encountered: