html5 - How to insert an object from SVG file using javascript/html? -


i have svg file bunch of different objects on 1 layer. there anyway display specific object file on webpage without first splitting objects out own file?

that’s perfect use case use element ...

https://developer.mozilla.org/en/docs/web/svg/element/use:

the <use> element takes nodes within svg document, , duplicates them somewhere else. effect same if nodes cloned non-exposed dom, , pasted use element is


https://css-tricks.com/svg-use-with-external-reference-take-2/ explains how make use of svg icon system, icons combined 1 single svg. might adaptable use, or @ least give more insight on how works.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -