A Pen by Geoff Graham on CodePen.
Created
December 20, 2024 16:14
-
-
Save anon987654321/69c4dcdd6ec45cb9754afafb4e63538a to your computer and use it in GitHub Desktop.
SVG Text Along a Curved Path
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
| <svg viewBox="0 0 425 300"> | |
| <path id="curve" d="M6,150C49.63,93,105.79,36.65,156.2,47.55,207.89,58.74,213,131.91,264,150c40.67,14.43,108.57-6.91,229-145" /> | |
| <text x="25"> | |
| <textPath xlink:href="#curve"> | |
| Dangerous Curves Ahead | |
| </textPath> | |
| </text> | |
| </svg> |
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
| body { | |
| background-color: #333; | |
| font-family: 'Luckiest Guy', cursive; | |
| font-size: 40px; | |
| } | |
| path { | |
| fill: transparent; | |
| } | |
| text { | |
| fill: #FF9800; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment