Skip to content

Instantly share code, notes, and snippets.

@LemonGirl
Forked from csssecrets/dabblet.css
Last active May 8, 2019 02:50
Show Gist options
  • Select an option

  • Save LemonGirl/ab80e4d64e103e62ce1cc4842ed5f70f to your computer and use it in GitHub Desktop.

Select an option

Save LemonGirl/ab80e4d64e103e62ce1cc4842ed5f70f to your computer and use it in GitHub Desktop.
Text on a circle
/**
* Text on a circle
*/
body {
font: bold 120% Helvetica, sans-serif;
margin: 0;
pading: 0;
}
.circular {
width: 25em;
height: 25em;
/*border: 3px solid pink;*/
margin: 4em auto 0;
}
.circular svg {
display: block;
overflow: visible;
/*transition: 10s linear transform;*/
}
.circular text { fill: gray }
.circular path { fill: none; }
/*.circular svg:hover { transform: rotate(-2turn); }*/
<div class="circular">
<svg viewBox="0 0 100 100">
<path d="M 0,50 a 50,50 0 1,1 0,1 z" id="circle" />
<text><textPath xlink:href="#circle">
circular reasoning works because
</textPath></text>
</svg>
</div>
{"view":"split-vertical","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