Guest User

SVG Stacking

a guest
Feb 27th, 2015
615
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. //test.svg
  2.  
  3. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  4.  
  5. <svg id="svg153" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="480" width="640" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
  6.  
  7. <svg:style
  8. xmlns:svg="http://www.w3.org/2000/svg" type="text/css">
  9. .i { display: none; }
  10. .i:target { display: block; }
  11. </svg:style>
  12.  
  13. <svg version="1.1" id="one" class="i" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
  14. width="120px" height="120px" viewBox="0 0 60 60" enable-background="new 0 0 60 60" xml:space="preserve">
  15. <circle fill="#3700DC" stroke="#000000" stroke-miterlimit="10" cx="29.768" cy="30.757" r="27.378"/>
  16. </svg>
  17.  
  18. <svg version="1.1" id="two" class="i" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
  19. width="120px" height="120px" viewBox="0 0 60 60" enable-background="new 0 0 60 60" xml:space="preserve">
  20. <circle fill="#ED00C1" stroke="#3700DC" stroke-miterlimit="10" cx="29.768" cy="30.757" r="27.378"/>
  21. <line fill="#ED00C1" stroke="#3700DC" stroke-miterlimit="10" x1="29.191" y1="7.51" x2="29.191" y2="49.489"/>
  22. <line fill="#ED00C1" stroke="#3700DC" stroke-miterlimit="10" x1="10.459" y1="26.242" x2="50.997" y2="26.242"/>
  23. </svg>
  24.  
  25. <svg version="1.1" id="three" class="i" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
  26. width="120px" height="120px" viewBox="0 0 60 60" enable-background="new 0 0 60 60" xml:space="preserve">
  27. <circle fill="none" stroke="#3700DC" stroke-miterlimit="10" cx="29.768" cy="30.757" r="27.378"/>
  28. </svg>
  29.  
  30. </svg>
  31.  
  32. //test.html
  33.  
  34. <html>
  35. <head></head>
  36. <body>
  37. <img src="test.svg#three" alt="SVG stacked image"/>
  38. </body>
  39. </html>
Advertisement
Add Comment
Please, Sign In to add comment