Noticed some inconsistencies over the use of IMG & SVG in the README documentation that might be confusing for some users:
Wrangling and maintaining a bunch of inline SVG on your pages isn't anyone's idea of good time, so SVGInjector lets you work with simple img tag elements (or other tag of your choosing) and does the heavy lifting of swapping in the SVG markup inline for you.
Noticed some inconsistencies over the use of IMG & SVG in the README documentation that might be confusing for some users:
Wrangling and maintaining a bunch of inline SVG on your pages isn't anyone's idea of good time, so SVGInjector lets you work with simple img tag elements (or other tag of your choosing) and does the heavy lifting of swapping in the SVG markup inline for you.
& then further down:
Add some SVG svg tags.
<svg class="inject-me" src="image-one.svg"> <svg class="inject-me" src="image-two.svg"> Inject 'em.
var mySVGsToInject = document.querySelectorAll('
img.inject-me');
The svg tags have now been replaced with the full SVG markup.