Clip-path Editor
Clip elements with polygon shapes and drag points to edit
Clip elements with polygon shapes and drag points to edit
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);Drag the dots in the preview to edit the polygon. Coordinates are in percent of the box, and the generated polygon() updates live.
clip-path crops an element to an arbitrary shape without touching its layout box. It accepts several value types: basic shape functions like circle(), ellipse(), inset(), and polygon(); a URL reference to an inline SVG <clipPath>; and (in newer browsers) a path() function that takes raw SVG path data.
polygon() lets you list any number of points as percentages or lengths, so you can build triangles, chevrons, ribbons, and diagonal section dividers directly in CSS. Because percentages are relative to the element, the shape scales with the box — a polygon(0 0, 100% 0, 100% 80%, 0 100%) angled section divider stays proportional on any screen size.
pointer-events: none on the hidden regions if that bites.polygon() values only if they have the same number of points — the browser interpolates point-by-point.filter: drop-shadow() to a parent element instead ofbox-shadow on the clipped one.