dream hunter dream hunter - 2 months ago 19
CSS Question

is it possible to invert svg image using css?

I'm trying to invert an image file with

.svg
extension using
css
.i know .png and .jpg files can be inverted using
css
webkit
properties. i'm new on
svg
images.is it possible to invert
.svg
images using
css
?

Answer

You can try this

 svg {
        -webkit-filter: invert(100%);
        filter: invert(100%);
    }

But you can also put your svg on <img src=""> and style like other format

Comments