Clip Path Generator
Generate CSS clip paths
Parameters
Preview
CSS Code
Frequently Asked Questions
What is CSS clip-path?
Clip-path defines a clipping region that determines which parts of an element are visible. Content outside the path is hidden. It supports shapes like circle(), ellipse(), polygon(), and inset(). The generator provides visual editing of clip paths.
How do I create a triangle with clip-path?
Use polygon with three points: clip-path: polygon(50% 0%, 0% 100%, 100% 100%) creates an upward-pointing triangle. Adjust the coordinates to change the triangle's shape and orientation. The generator lets you drag points visually.
What shapes can I create with clip-path?
Basic shapes: circle(), ellipse(), inset() for rectangles. Complex shapes: polygon() with any number of points. You can create stars, arrows, hexagons, speech bubbles, and any custom shape by defining polygon vertices.
Can I animate clip-path?
Yes, clip-path is animatable with CSS transitions and animations. The number of polygon points must match between states. Example: morph a square into a circle by transitioning from inset(0) to circle(50%). The generator creates animation keyframes.
Does clip-path affect click events?
Clipped areas are still part of the element's box model and receive click events by default. To make only the visible area clickable, add pointer-events: none to the clipped element and handle events on visible children.