Skip to content

Instantly share code, notes, and snippets.

@AleksueiR
Created August 17, 2018 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AleksueiR/28c09685add95a10dfa6f2fc51caebce to your computer and use it in GitHub Desktop.
Save AleksueiR/28c09685add95a10dfa6f2fc51caebce to your computer and use it in GitHub Desktop.
JS Bin SVG in IE11 // source https://jsbin.com/xoyunut
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="SVG in IE11">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/svg.js/2.5.0/svg.js"></script>
</head>
<body>
<div id="drawing"></div>
<script id="jsbin-javascript">
var draw = SVG('drawing').size(500, 130)
var image = draw.image('https://rawgit.com/RanzQ/c1337d79f1943e91fc0832423ff16c3b/raw/bfdc19718070ed5e57ad578e73fc09b43967e5e5/bunny.svg')
image.size(100, 100).move(20, 20)
</script>
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html>
<html>
<head>
<meta name="description" content="SVG in IE11">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/svg.js/2.5.0/svg.js"><\/script>
</head>
<body>
<div id="drawing"></div>
</body>
</html></script>
<script id="jsbin-source-javascript" type="text/javascript">var draw = SVG('drawing').size(500, 130)
var image = draw.image('https://rawgit.com/RanzQ/c1337d79f1943e91fc0832423ff16c3b/raw/bfdc19718070ed5e57ad578e73fc09b43967e5e5/bunny.svg')
image.size(100, 100).move(20, 20)</script></body>
</html>
var draw = SVG('drawing').size(500, 130)
var image = draw.image('https://rawgit.com/RanzQ/c1337d79f1943e91fc0832423ff16c3b/raw/bfdc19718070ed5e57ad578e73fc09b43967e5e5/bunny.svg')
image.size(100, 100).move(20, 20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment