dream hunter dream hunter - 1 year ago 100
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download