Kalozera wa Zida Zaulere / Zida Zina / Wopanga Clip-njira

Wopanga Clip-njira

Sankhani mawonekedwe okonzedweratu kapena kokerani mfundozo powoneratu, kenako koperani njira ya CSS yokonzeka kugwiritsa ntchito patsamba lanu. Polygon, bwalo, ellipse ndi mawonekedwe amkati.

Sankhani mawonekedwe okonzedweratu kapena kukoka malo owoneratu, kenako koperani CSS yokonzeka kugwiritsa ntchito patsamba lanu, yokhala ndi polygon, bwalo, ellipse ndi mawonekedwe amkati. Sinthani mawonekedwewo ndi zogwirira kapena masilayidi, kenaka muyike CSS yojambulidwa mumayendedwe azinthu zanu. Gwiritsani ntchito kujambula chithunzi m'mphepete mwa diagonal kapena chozungulira chamutu watsamba lofikira.

Tsegulani chida →

Zaulere kugwiritsa ntchito, osalembetsa. Chidachi chimatsegula pa tsamba lakelo ndipo chimayenda mu msakatuli wanu.

Mukufuna zina? Pitani Pro

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

Pezani Pro →

Alipay - $5

Kapena tsegulani chida chilichonse ndi All-Access Pro - $15 kamodzi.

Pezani Zonse - $15 kamodzi

Alipay - $15

Mitengo imasinthidwa ndi dziko kotero kuti chida chomwecho chimatsika mtengo pomwe ndalama zimakhala zotsika - mumawona mtengo wadziko lanu.

Kukonda Alipay? Onani njira zonse zolipirira.

Mwalipira kale? Lowani ku Pro

Momwe mungagwiritsire ntchito

  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.

Mafunso wamba

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.

Zida zambiri za Zida Zina

← Bwererani ku zida zonse · Sakatulani maupangiri