Đang chọn gợi ý…
Chọn ngẫu nhiên một nội dung dành cho bạn.
Mở ngay →12 CSS clip-path presets (triangle, star, hexagon, speech bubble) plus editable polygon points. Live preview, copy CSS, also supports circle/ellipse/inset. Free, no signup.
CSS clip-path crops an element to any shape. Use for hero trapezoids, star badges, speech bubbles. GPU-rendered, animatable.
The CSS clip-path property crops an element to any shape — no SVG, no PNG. GPU-rendered, animatable.
/* Polygon */
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
/* ↑ apex ↑ bottom-left ↑ bottom-right */
/* Circle */
clip-path: circle(50% at 50% 50%);
/* ↑ radius ↑ center */
/* Ellipse */
clip-path: ellipse(40% 50% at 50% 50%);
/* Inset — crop inward, optional rounded corners */
clip-path: inset(10% 20% 10% 20% round 20px);
/* ↑ top right bottom left */ Each x% y% pair is a vertex:
0% 0% = top-left100% 0% = top-right100% 100% = bottom-right0% 100% = bottom-leftPoints connect with straight lines in declaration order. You can use px instead of %, but % is more responsive.
transition: clip-path 0.3s ease; — smooth shape morph on hover.linear-gradient for eye-catching CTAs.clip-path crops by vector shape (polygon, circle) — pixels are either fully in or fully out. mask uses a greyscale image as an opacity layer, allowing soft gradient fades. clip-path is lighter (better GPU acceleration); mask is more flexible but heavier.
Yes. All modern browsers (Safari 11.1+, Chrome 55+, Firefox 54+, Edge 79+) support polygon, circle, ellipse, and inset. path() has limits in older Safari (full support from 16+). Over 97% of global users can render it.
Yes, but with a constraint: the two keyframes must have the SAME number of polygon points. Animating from a triangle (3 points) to a square (4 points) jitters. Workaround: add duplicate points to the triangle so both have 4. Circle and ellipse animations don't have this issue.
% is responsive to element size — the shape scales with the box. px is best when the element has a fixed size. Best practice: use % for hero/section curves, use px for fixed-size icons or badges.
path() uses SVG path syntax (M, L, C, Z) — verbose but very powerful. shape() (CSS Shapes 2, new in Chrome 130+) uses syntax close to polygon but allows curves. As of 2026, shape() doesn't have wide enough browser support for production. This tool doesn't expose it yet.
Frontend devs, UI/UX designers, anyone prototyping visuals fast or generating CSS for Tailwind/React/Vue projects.
Yes. Output is vanilla CSS, paste into any .css file. For Tailwind projects, use @utilities layer or theme overrides.
Modern CSS syntax (custom properties, grid). Works on Chrome/Firefox/Safari 2020+. IE11 NOT supported.
Pick HEX/RGB/HSL, RGB sliders, 12 presets, nearest Tailwind name.
NEWVisual builder for CSS animations. 10 presets (fadeIn, bounce, pulse, spin, shake…). Tweak duration, easing, iteration.
NEWVisual builder for CSS filters — blur, brightness, sepia, hue-rotate, drop-shadow. 8 presets (Vintage, Polaroid, Noir…).
NEWGenerate harmonious palettes from a base color (HSL theory). 6 schemes: Monochromatic, Analogous, Complementary, Triadic… + 10 shades.