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

Add Color Options #10

Closed
andrewmunsell opened this issue Aug 16, 2014 · 5 comments
Closed

Add Color Options #10

andrewmunsell opened this issue Aug 16, 2014 · 5 comments

Comments

@andrewmunsell
Copy link

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).

@Urigo
Copy link
Owner

Urigo commented Oct 1, 2014

@andrewmunsell I think it is better to do it in css no?

@Urigo Urigo closed this as completed Oct 12, 2014
@hopewise
Copy link

Yes, here is how I did it:

.wave-spinner>div {
            background-color: burlywood;
    }

@Mahmoudz
Copy link

Here's how to change the colors for each of the spinners:
(Note I am using version 1.2.5)
In this file I am setting all the colors to Red (#FF0000)

.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;
}

@allancaffee
Copy link

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.

@Urigo
Copy link
Owner

Urigo commented Oct 30, 2016

@allancaffee can you PR the README?

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

5 participants