html - Inline svg to greyscale -


i've got inline svg. how can convert grey scale. while googling came across answers none of them worked. here's fiddle

.ab.desaturate{     -webkit-filter: grayscale(1);      -webkit-filter: grayscale(100%);     filter: gray;      filter: grayscale(100%);     filter: url(desaturate.svg#d3); } 

your code targeting class .desaturate.

either add class or remove css, works fine:

https://jsfiddle.net/lkfyy23e/2/


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -