adexin / spinners-react

Lightweight SVG/CSS spinners for React
https://adexin.github.io/spinners/
MIT License
415 stars 21 forks source link

How to set the background color to "transparent"? #18

Open sarchibald-mdsol opened 2 years ago

sarchibald-mdsol commented 2 years ago

I'd like to have the background color of the spinner be "transparent". Is there a way to do this?

colin-chadwick commented 2 years ago

Hey there! That works just like in CSS. Supply an RGBA color to the secondaryColor property, with the alpha channel set to 0.

<SpinnerCircular secondaryColor="rgba(0, 0, 0, 0)" />