-
-
Save LemonGirl/ab80e4d64e103e62ce1cc4842ed5f70f to your computer and use it in GitHub Desktop.
Text on a circle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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); }*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"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