Typography SVG experiment
How do I make an typography svg experiment?
SVG curve and css text-shadowingThe Curve in the type looks correct in IE(9+), webkit, blink but in firefox it follows the path in a strange way, looking almost triangular.. What is a typography svg experiment? How do you make a typography svg experiment? This script and codes were developed by Chris Wright on 12 July 2022, Tuesday.
Typography SVG experiment - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Typography SVG experiment</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1 class="m-type-treatment">
<svg class="m-type-svg" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 320.1 049.4" xml:space="preserve">
<path id="curve" style="fill:none;" d="M94.2,45.5c0,0,26.4-15.5,61.6-15.5s60.6,15.5,60.6,15.5"/>
<text> <textPath startOffset="5%" class="m-type-curved" xlink:href="#curve">
LOCAL'S</textPath>
</text>
</svg> <span class="m-type-offset-shadow">Corner</span>
</h1> <script src='https://dl.dropboxusercontent.com/u/1358745/scripts/circletype.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Typography SVG experiment - Script Codes CSS Codes
@import url(http://fonts.googleapis.com/css?family=Graduate);
@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700,900);
body { background: #333; background: url("https://unsplash.imgix.net/reserve/6TjIJK0uSJWtQUZuQWMW_58400023.jpg?q=75&fm=jpg&auto=format&s=243164aa8156f27dd1be354f592c2e57"); font-size: 100%; background-size: 100%; line-height: 1.5;
}
.m-type-svg { display: block; max-width: 100%;
}
.m-type-treatment { max-width: 700px; margin: 2em auto;
}
.m-type-curved { display: block; font-family: "Lato"; font-weight: 700; font-size: 1.84em; color: #dbd5c5; fill: #dbd5c5; text-transform: uppercase;
}
.m-type-offset-shadow { color: #dbd5c5; text-align: center; font-family: 'Graduate', sans-serif; text-transform: uppercase; font-size: 9em; letter-spacing: 0.1em; text-shadow: -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 2px 2px 0 #333, 0.04em 0.025em #333, 0.07em 0.055em #6a7d9d;
}
Typography SVG experiment - Script Codes JS Codes
//as you can see by this demo
//webkit and IE browsers curve the type to the path
//firefox treats it like there is no curve and more like a straight line
//i also found that Firefox seems to pick certain points at which it gets jaggy, will add more demos to show.
//if you use a perfect circle, firefox will get jaggy at different offset amounts
Developer | Chris Wright |
Username | chriswrightdesign |
Uploaded | July 12, 2022 |
Rating | 3.5 |
Size | 3,472 Kb |
Views | 48,576 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
IPhone SVG | 3,490 Kb |
SVG Noise | 2,930 Kb |
Macbook Air SVG | 11,283 Kb |
SVG Noise blended radial | 2,946 Kb |
Grid - More complex grids with span | 3,695 Kb |
SVG Shadows | 3,657 Kb |
CSS line-height animated accordion pattern | 7,059 Kb |
Form adaptation | 2,899 Kb |
CSS Responsive animated Accordion | 4,834 Kb |
Grid - Auto-fit demo | 3,128 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
IbrahimJabbari-Effect14 | Ibrahimjabbari | 1,919 Kb |
Wrap_Test | Mscfourn | 7,503 Kb |
Retina canvas w. resize | Erikterwan | 1,882 Kb |
A bit of elegance | Hackthevoid | 9,095 Kb |
Canvas Background Effect | Sonick | 3,513 Kb |
Basic HTML Slideshow | Tomhodgins | 3,386 Kb |
A Pen by Jay | Jaycode | 3,784 Kb |
Flex layout example | Mofny | 1,663 Kb |
Cartoon Bomb | Tcmulder | 4,929 Kb |
Reviews and Ratings Star | Zbnmstry | 1,591 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!