SVG CSS ViewBox Demo
How do I make an svg css viewbox demo?
What is a svg css viewbox demo? How do you make a svg css viewbox demo? This script and codes were developed by Mobile Application Design-Development on 11 November 2022, Friday.
SVG CSS ViewBox Demo - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>SVG CSS ViewBox Demo</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="contain-demo"> <!-- original viewBox values 0 0 115 190 Try playing with the values in viewBox to see what happens. The viewBox values are the cropping numbers for the image. The CSS width and height are how big to make the svg image on the page. It's like the scaling of the image. opening tag can be... <svg viewBox="0 0 115 190"> OR <svg width="115" height="190"> --> <svg width="115" height="190"> <desc>Green pear to show effects of matching viewport and viewBox.</desc> <g> <path fill="#BBC42A" d="M4.976,126.451c-0.571,1.76-1.067,3.551-1.475,5.377c-6.62,29.681,7.465,54.363,43.244,56.718 c56.994,3.751,77.653-25.65,60.462-67.25C90.017,79.697,82.063,89.688,80.366,57.764c-0.764-14.367-11.098-27.167-26.203-24.576 c-17.378,2.982-19.794,19.916-22.192,34.44C28.36,89.508,11.623,105.957,4.976,126.451z"/> <path fill="none" stroke="#59351C" stroke-width="7" stroke-linecap="round" d="M56.427,40.406 c0,0-7.375-15.376,8.06-35.837"/> <path fill="#7AA20D" stroke="#7AA20D" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d=" M54.247,35.412c0.787-3.843,3.55-7.335,8.368-9.848c10.053-5.244,18.075-4.042,28.061,0.2c0.004,0.002,12.83,5.449,20.517-4.672 c-4.778,6.291-9.415,12.478-14.878,18.237c-8.878,9.359-25.348,22.181-37.176,9.661C55.019,44.629,53.349,39.793,54.247,35.412z"/> </g> </svg>
</div>
</body>
</html>
SVG CSS ViewBox Demo - Script Codes CSS Codes
.contain-demo { margin: 25px auto; text-align: center; background-color: #eee;
}
.contain-demo svg{ border: 1px dotted grey; background-color:#ddd; height: auto; width: 25%;
}
Developer | Mobile Application Design-Development |
Username | mad-d |
Uploaded | November 11, 2022 |
Rating | 3 |
Size | 2,176 Kb |
Views | 24,288 |
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 |
Practice querySelector | 2,512 Kb |
Mobile Web App Starter | 2,014 Kb |
Cordova Cheatsheet | 2,534 Kb |
Sept 14 Demo | 1,227 Kb |
HTML Canvas Samples | 5,370 Kb |
MAD9022 Simple Pie Chart | 2,370 Kb |
HTML5 Canvas Intro | 1,870 Kb |
Party Starter | 1,676 Kb |
Mad9014 - objects and arrays | 2,606 Kb |
Mad9013 - DOM Manipulation sample | 3,113 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 |
Toggle Time | Petebot | 5,345 Kb |
Infractions - Attitude | Kylie_Joseph | 7,672 Kb |
Emberjs Bootstrap Modal Carousel | Somethingkindawierd | 4,233 Kb |
Board Site | IndianaLuft | 10,542 Kb |
Hard-Stop Gradients | Mackdoyle | 2,288 Kb |
DevCamp 2014 - Denver Public Library | See8ch | 5,033 Kb |
A Pen by Jason Kinney | Jason-kinney | 1,980 Kb |
Drill-down Map | Good886 | 8,484 Kb |
Swiftype Lower Third | Zumwalt | 4,796 Kb |
Mario | Takaneichinose | 3,902 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!