guategeek / injectsvg Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jaberibnemahboob/injectsvg
Inject SVG Code is a simple independent Javascript function to inject svg code to html where svg images use with image tag. It's main use when you want to keep your code simple in your original html file and want to play with svg elements. It's simply remove the image tag ('img') having source file as svg and copy the whole svg file to it's place. Perfact examples - if you want to change and svg image element on runtime, if you want to apply css/js on svg elements or, if you want to animate svg element using css/js with proper control. The website must use http or, https protocol.
Home Page: https://jaberibnemahboob.github.io/injectsvg
License: MIT License