Uvimba weefayili wesixhobo sasimahla / Ezinye izixhobo / Umenzi wendlela yekliphu

Umenzi wendlela yekliphu

Khetha imilo esetwe kwangaphambili okanye tsala amanqaku kumboniso ophilayo, emva koko ukope i-CSS esele ilungele ukusetyenziswa kwiwebhusayithi yakho. Ipolygon, isangqa, ellipse kunye neemilo ze-inset.

Khetha imilo esetwe kwangaphambili okanye utsale amanqaku kumboniso ophilayo, emva koko ukope esele ilungele ukusebenzisa i-clip-path ye-CSS yewebhusayithi yakho, enepolygon, isangqa, iellipse kunye neemilo ze-inset. Lungisa imilo ngeziphatho okanye izilayidi, emva koko uncamathisele i-CSS ekhutshelweyo kwisitayile sento yakho. Yisebenzise ukukrweca ifoto kumda wediagonal okanye imilo engqukuva yeheader yephepha lokufika.

Vula isixhobo →

Imahala ukuyisebenzisa, akukho bhaliso. Isixhobo sivula kwiphepha laso kwaye sisebenza kwisikhangeli sakho.

Ngaba ufuna ngakumbi? Yiya kwiPro

Pro: download your Clip-path results & save history, $5 one-time

Fumana iPro →

I-Alipay — $5

Okanye uvule zonke izixhobo nge-All-Access Pro — $15 kanye.

Fumana konke-uFikelelo — $15 kube kanye

I-Alipay — $15

Amaxabiso ahlengahlengiswa ngokwelizwe ukuze isixhobo sinye sibize ngaphantsi apho imivuzo iphantsi - ubona ixabiso lelizwe lakho.

Ukhetha i-Alipay? Jonga zonke iindlela zokuhlawula.

Sele uhlawulwe? Ngena kwiPro

Indlela yokuyisebenzisa

  1. Choose Polygon, Circle, Ellipse or Inset.
  2. For a polygon, pick a preset or drag the round handles on the preview to move points; add or delete points as needed.
  3. For circle and ellipse, use the sliders for size and centre; for inset, set the four edges and corner rounding.
  4. Copy the CSS from the box and paste it into your element's style.

Imibuzo eqhelekileyo

What is clip-path?

A CSS property that clips an element to a shape — anything outside the shape is hidden. It works on images, divs, videos and more, and it is supported by all modern browsers.

Why does my shape look stretched?

Polygon points are percentages of the element's own width and height, so the same points look different on a wide element than on a square one. The preview uses a 4:3 box; test the CSS on your real element size.

Can I animate clip-path?

Yes — most browsers can transition clip-path between two shapes with the same number of points, which is how many hover morph effects are made.

Do I need anything else in my CSS?

No. Paste the copied line into your element's style (or a class) and it works. Older browsers may need -webkit-clip-path as well — the copied CSS includes both lines.

Ezinye izixhobo izixhobo ezingakumbi

← Buyela kuzo zonke izixhobo · Khangela izikhokelo