ToolPal

CSS Clip Path生成器

通过可拖动的控制点直观地创建CSS clip-path形状,生成多边形、圆形和椭圆的代码。

形状预设

实时预览

生成的CSS

.clipped {
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  -webkit-clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

点坐标 (拖动调整):

P1: 50.0%, 0.0%
P2: 100.0%, 38.0%
P3: 82.0%, 100.0%
P4: 18.0%, 100.0%
P5: 0.0%, 38.0%

使用方法

通过可拖动的控制点直观地创建CSS clip-path形状,生成多边形、圆形和椭圆的代码。

  1. 1Choose a shape preset (triangle, star, hexagon, circle, etc.) to start with a ready-made clip-path.
  2. 2Drag the white handles in the live preview to reshape polygon vertices. The clip-path value updates instantly.
  3. 3Use 'Add Point' or 'Remove Point' to change the number of vertices in a polygon shape.
  4. 4Change the preview color using the color picker to test how the clip-path looks with your design.
  5. 5Copy the generated CSS with one click and paste it into your stylesheet.

主要功能

  • 12 shape presets — triangle, star, pentagon, hexagon, arrow, circle, ellipse, and more
  • Draggable polygon handles — interactively reposition each vertex in the live preview
  • Editable clip-path field — manually type any valid clip-path value and see the preview update
  • Outputs both clip-path and -webkit-clip-path for full browser compatibility

常见问题

了解更多