Skip to content

Instantly share code, notes, and snippets.

@zakdances
Created July 29, 2013 21:05
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 zakdances/6107825 to your computer and use it in GitHub Desktop.
Save zakdances/6107825 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.svgbox {
width: 160px;
height: 160px;
background-color: #eee;
position: relative;
left: 100px;
}
background: #f06;
background: linear-gradient(45deg, #fff, #eee);
min-height: 100%;
<div class="svgbox">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path id="textPath" d="M 10 80 a 70,70 0 1,1 140,0 a 70,70 0 1,1 -140,0 z" fill="red"></path>
<text x="0", y="0">
<textPath xlink:href="#textPath" textLength="205" startOffset="0%">photo photo photo photo</textPath>
</text>
</svg>
</div>
// alert('Hello world!');
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment