SVG Clipping
How do I make an svg clipping?
What is a svg clipping? How do you make a svg clipping? This script and codes were developed by Томаш Хамлай on 11 November 2022, Friday.
SVG Clipping - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>SVG Clipping</title> <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> <svg class="svg-defs"> <defs> <clipPath id="clipping" clipPathUnits="objectBoundingBox"> <path class="clip-path" d="M0.8908045977011494 0.005747126436781609 A 0.10344827586206896 0.10344827586206896, 0, 0, 0, 0.9942528735632183 0.10919540229885058 L 0.9942528735632183 0.8908045977011494 A 0.10344827586206896 0.10344827586206896, 0, 0, 0, 0.8908045977011494 0.9942528735632183 L 0.10919540229885058 0.9942528735632183 A 0.10344827586206896 0.10344827586206896, 0, 0, 0, 0.005747126436781609 0.8908045977011494 L 0.005747126436781609 0.10919540229885058 A 0.10344827586206896 0.10344827586206896, 0, 0, 0, 0.10919540229885058 0.005747126436781609 Z " /> </clipPath> </defs>
</svg>
<div class="background"> <div class="element-wrapper"> <svg class="worker-bg" viewBox="0 0 174 174" preserveAspectRatio="xMaxYMax meet" xmlns="http://www.w3.org/2000/svg"> <path class="bg-path-z0" d="M154 2 A 18 18, 0, 0, 0, 172 20 L 172 154 A 18 18, 0, 0, 0, 154 172 L 20 172 A 18 18, 0, 0, 0, 2 154 L 2 20 A 18 18, 0, 0, 0, 20 2 Z" /> <path class="bg-path-z1" d="M154 1 A 18 18, 0, 0, 0, 172 20 L 172 154 A 18 18, 0, 0, 0, 154 172 L 20 172 A 18 18, 0, 0, 0, 2 154 L 2 20 A 18 18, 0, 0, 0, 20 2 Z" /> <path class="bg-path-z2" d="M151 5 A 20 20, 0, 0, 0, 169 23 L 169 151 A 20 20, 0, 0, 0, 151 169 L 23 169 A 20 20, 0, 0, 0, 5 151 L 5 23 A 20 20, 0, 0, 0, 23 5 Z" /> </svg> <div class="element"> <svg class="svg-image-with-vector-mask" viewBox="0 0 600 600" preserveAspectRatio="xMaxYMax meet"> <image width="100%" height="100%" xlink:href="https://fleetstreet186.com.ua/wp-content/themes/your-clean-template-3/img/worker2.jpeg" /> </svg> </div> </div>
</div>
</body>
</html>
SVG Clipping - Script Codes CSS Codes
* { margin: 0;
}
html,
body { height: 100%;
}
.background { height: 100%; width: 100%; position: relative; background-color: #093b4d;
}
.element-wrapper { position: absolute; top: 30%; right: 30%; bottom: 30%; left: 30%; margin: auto;
}
.worker-bg { position: relative; top: 9px; left: 9px;
}
.element { position: absolute; top: -7px; left: -7px; width: 100%; height: auto;
}
.svg-defs { position: absolute; z-index: -1;
}
.bg-path-z0,
.bg-path-z1,
.bg-path-z2 { fill: transparent; fill-opacity: 0; stroke-opacity: 0.2; stroke: #ffe9cd;
}
.bg-path-z0 { stroke-width: 3px;
}
.bg-path-z1 { stroke-width: 2px;
}
.bg-path-z2 { stroke-width: 1px;
}
.clip-path { stroke: transparent; stroke-opacity: 0; stroke-width: 1;
}
.svg-image-with-vector-mask { clip-path: url(#clipping);
}
![SVG Clipping - Script Codes](http://shots.codepen.io/TomashKhamlai/pen/MbPWOK-512.jpg)
Developer | Томаш Хамлай |
Username | TomashKhamlai |
Uploaded | November 11, 2022 |
Rating | 3 |
Size | 2,784 Kb |
Views | 16,192 |
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 |
Calc2 | 3,704 Kb |
Nesting countersEdit | 1,825 Kb |
Firefox SVG Example | 1,935 Kb |
SVG-button | 2,677 Kb |
Jplayer | 1,837 Kb |
Calc.js | 3,338 Kb |
Teplomer.in.ua calculator | 8,541 Kb |
Calculator | 3,212 Kb |
SVG-button Responsive | 2,481 Kb |
SVG Mascing Stretching AR | 2,384 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 |
JQuery exercise | Brian-baum | 3,780 Kb |
Blog Concept - Single Post | Marionebl | 9,603 Kb |
Next Word Predictor | Rfalor | 2,776 Kb |
Pagepilling.js | Blossk | 6,554 Kb |
Jquery 2d character movement | Drewtadams | 4,291 Kb |
SVG Playground | Roygwells | 1,834 Kb |
Calendar | Miroot | 2,033 Kb |
A Pen by Malith Hettiarachchi | MalZiiirA | 5,531 Kb |
Plotting Points with D3.js | Laurakelly | 31,996 Kb |
Beveled corners using CSS border attribute | DawsonMediaD | 2,136 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!