coderitual / bounty

Javascript and SVG odometer effect library with motion blur

Home Page:https://coderitual.github.io/bounty/examples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to change the color on a white background?

melvincarvalho opened this issue · comments

I tried something like

odoo.default({ 
  el:".spin",value:"£400" , "color" : "black", "background-color" : "green" 
})

But it always shows up as white on white ...

It's a bug. Thanks for reporting this. Color should be handled by fill attribute in css (as it is a svg).

Hi, now you can change the color with css. As it is a svg element you need to use fill instead of color. The cool thing is that you could use some additional attributes like stroke.

.js-odoo {
  fill: black;
  background-color: green;
}