Nnwinnade a Wɔde Di Dwuma Nhomakorabea a Wɔde Ma Kwa / Nnwinnade Afoforo / Clip-kwan a Wɔyɛ

Clip-kwan a Wɔyɛ

Paw nsusuwii a wɔahyɛ ato hɔ anaa twetwe nsɛntitiriw no wɔ live preview so, afei kɔpi clip-path CSS a wɔasiesie sɛ wode bedi dwuma no ma wo wɛbsaet no. Polygon, kurukuruwa, ellipse ne inset nsusuwii ahorow.

Paw nsusuwii a wɔahyɛ ato hɔ anaa twetwe nsɛntitiriw wɔ live preview so, afei kɔpi clip-path CSS a wɔasiesie sɛ wode bedi dwuma ama wo wɛbsaet no, a polygon, circle, ellipse ne inset shapes ka ho. Fa nsa anaa sliders siesie nsusuwii no, afei fa CSS a woayɛ no kɔpi no hyɛ wo element no style mu. Fa twitwa mfonini bi mu kɔ diagonal edge anaa rounded shape ma landing page header.

Bue adwinnade →

Free sɛ wode bedi dwuma, worenkyerɛw wo din. Adwinnade no bue wɔ n’ankasa kratafa so na ɛyɛ adwuma wɔ wo browser no mu.

Wohia pii? Kɔ Pro

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

Nya Pro →

Alipay — $5 na ɛyɛ adwuma.

Anaasɛ bue adwinnade biara ne All-Access Pro — $15 pɛnkoro.

Nya All-Access — $15 pɛnkoro

Alipay — $15 na ɛyɛ adwuma.

Wɔyɛ nsakraeɛ wɔ boɔ mu sɛdeɛ ɔman biara teɛ enti adwinnadeɛ korɔ no ara boɔ sua wɔ baabi a sika a wɔnya no sua — wobɛhunu boɔ a ɛwɔ wo man no mu.

Wopɛ Alipay? Hwɛ akwan a wɔfa so tua sika nyinaa.

Wɔatua ho ka dedaw? Kɔ Pro no mu

Sɛnea wɔde bedi dwuma

  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.

Nsɛmmisa a wɔtaa bisa

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.

Nnwinnade Afoforo nnwinnade pii

← San kɔ nnwinnade nyinaa so · Hwehwɛ akwankyerɛ ahorow mu