Ububiko bwibikoresho byubusa / Ibindi bikoresho / Gukora inzira

Gukora inzira

Toranya imiterere yabugenewe cyangwa ukurura ingingo kumurongo ubanza, hanyuma wandukure witeguye-gukoresha-clip-inzira CSS kurubuga rwawe. Polygon, umuzingi, ellipse hamwe ninshusho.

Toranya igishushanyo mbonera cyangwa gukurura ingingo kumurongo wibanze, hanyuma ukoporore witeguye-gukoresha-clip-inzira CSS kurubuga rwawe, hamwe na polygon, umuzingi, ellipse na shusho. Hindura imiterere ukoresheje imashini cyangwa ibitonyanga, hanyuma wandike CSS yimuwe muburyo bwa element. Koresha kugirango ufate ifoto mumutwe wa diagonal cyangwa ishusho izengurutse urupapuro rwurupapuro.

Fungura igikoresho →

Ubuntu bwo gukoresha, nta kwiyandikisha. Igikoresho gifungura kurupapuro rwacyo kandi gikora muri mushakisha yawe.

Ukeneye byinshi? Genda Pro

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

Kubona Pro →

Alipay - $5

Cyangwa fungura igikoresho cyose hamwe na All-Access Pro - $15 rimwe.

Kubona Byose-Kubona - $15 rimwe

Alipay - $15

Ibiciro byahinduwe nigihugu kuburyo igikoresho kimwe kigura make aho amafaranga yinjiza ari make - urabona igiciro cyigihugu cyawe.

Hitamo Alipay? Reba uburyo bwose bwo kwishyura.

Bimaze kwishyurwa? Injira muri Pro

Uburyo bwo kuyikoresha

  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.

Ibibazo bisanzwe

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.

Ibikoresho byinshi Ibindi bikoresho

Subira ku bikoresho byose · Shakisha ubuyobozi