
Web Scripts & Software
DEV3 CSS Clip-Path Generator — Source Code (React + Tailwind)
from $29
Live demoDesign tool
Free, no sign-up. Runs in your browser; nothing is uploaded. Buy the source code: $29 Regular / $69 Extended
Drag a point, or focus it and use the arrow keys (Shift for 5%). Double-click an edge to add a point.
| # | X % | Y % |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 | ||
| 6 |
-webkit-clip-path: polygon(100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%, 25% 6.7%, 75% 6.7%); clip-path: polygon(100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%, 25% 6.7%, 75% 6.7%);
Paste clip-path: polygon(...) or just the function.
The preview only moves when you press play. The generated CSS switches animation off for visitors who prefer reduced motion.
.shape {
clip-path: polygon(100% 50%, 87.5% 71.65%, 75% 93.3%, 50% 93.3%, 25% 93.3%, 12.5% 71.65%, 0% 50%, 25% 6.7%, 50% 6.7%, 75% 6.7%);
transition: clip-path 1.2s ease-in-out;
}
.shape:hover {
clip-path: polygon(50% 0%, 61.17% 34.63%, 97.55% 34.55%, 68.07% 55.87%, 79.39% 90.45%, 50% 69%, 20.61% 90.45%, 31.93% 55.87%, 2.45% 34.55%, 38.83% 34.63%);
}
/* Or run it on a loop */
@keyframes morph {
from { clip-path: polygon(100% 50%, 87.5% 71.65%, 75% 93.3%, 50% 93.3%, 25% 93.3%, 12.5% 71.65%, 0% 50%, 25% 6.7%, 50% 6.7%, 75% 6.7%); }
to { clip-path: polygon(50% 0%, 61.17% 34.63%, 97.55% 34.55%, 68.07% 55.87%, 79.39% 90.45%, 50% 69%, 20.61% 90.45%, 31.93% 55.87%, 2.45% 34.55%, 38.83% 34.63%); }
}
.shape.animate {
animation: morph 1.2s ease-in-out infinite alternate both;
}
@media (prefers-reduced-motion: reduce) {
.shape, .shape.animate { transition: none; animation: none; }
}Need CSS Clip-Path Generator as a complete website or app for your brand? We design and build it end to end. Built in about a week, from $99. Send your requirements or SOW; you get a fixed quote and a delivery date.
The css clip-path generator stays free to use online. If you want the code to run, edit and ship in your own project, get the full source from the DEV3 Marketplace. Instant download, 6 months of support.
Launch the full site, not just the asset. Buy once, own the source, and try each one live first.

Web Scripts & Software
from $29
Live demo
Enterprise SaaS Starters
from $99
Live demo
Web Scripts & Software
from $99
Live demo
Web Scripts & Software
from $29
Live demo

Web Scripts & Software
from $29
Live demo
Web Scripts & Software
from $29
Live demo
Web Scripts & Software Mobile app
from $99
Live demoThe CSS clip-path property cuts an element into a shape. It is how designers make angled section edges, hexagon avatars, speech bubbles, arrow buttons and wavy dividers without images. Writing the coordinates by hand is slow, so this generator lets you draw them.
Paste an existing clip-path declaration to edit it. Pixel values are converted to percent using the canvas size. The Animate panel morphs your shape into another preset, builds the hover transition and the keyframes, and adds a prefers-reduced-motion rule so people who dislike motion see a static shape.
Keep important text inside the visible area, because clipped content is also unclickable. Add padding to leave room for diagonal edges. For a responsive layout use percentages. When the same shape is reused many times, an SVG clipPath with objectBoundingBox units is the compact option, and this tool generates it for you.
clip-path hides everything outside a shape you define. The visible part can be a polygon, circle, ellipse, inset rectangle or an SVG path. Clicks outside the shape no longer hit the element either.
Use clip-path: polygon(50% 0%, 0% 100%, 100% 100%). Each pair is an x and y position measured from the top-left corner of the element. Load the Triangle preset to see it and drag the points.
Yes, if both shapes are of the same kind and a polygon has the same number of points. The Animate panel adds points to the simpler polygon so any two polygons can morph, then gives you a transition, a keyframes version and a reduced-motion rule.
Percentages scale with the element, so the shape stays correct at every size. Pixels give a fixed shape. path() always uses pixels, which is why it does not stretch with the box.
Copy the Tailwind tab. It is an arbitrary property class such as [clip-path:polygon(50%_0%,0%_100%,100%_100%)] where spaces are written as underscores, so it works in any Tailwind 3 or 4 project.
Basic shapes work in all current browsers without a prefix. The code adds -webkit-clip-path for older Safari. For shapes that must work as a mask on SVG content, use the SVG clipPath tab.