Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [clip-path]

A CSS property that makes it possible to specify a specific region of an object to display.

clip-path
11 votes
4 answers
23k views

Clip-path doesn't work in firefox [% values]

I am trying to run svg clip-path in mozilla but it doesn't work. .mask-1 { -webkit-clip-path: polygon(0% 0%, 58% 0%, 39% 81.8%, 0% 81.8%); clip-path: polygon(0% 0%, 58% 0%, 39% 81.8%, 0% 81....
user4821826's user avatar
10 votes
3 answers
1k views

Stacking circles produces a black bar on border radius

I have quite the puzzling enterprise here. I'm building a mouse which serves as a 'torch / searchlight'. All text (inline elements, buttons, you get the point) gets inverted from the usual white to ...
roberrrt-s's user avatar
  • 8,140
7 votes
2 answers
830 views

Creating inverted border radius and box-shadow together

I want to create an inverted border radius similar to: However, it is being hard to create it due to the box-shadow. I have tried many solutions, such use box-shadow inset, or the filter drop-shadow ...
SnakeDrak's user avatar
  • 3,614
2 votes
1 answer
3k views

Problem with CSS SVG Clip path - not working

I have a problem with a clip path css. When I put clip path on my css fill, image wont show... I m on chrome. So you have any idea ? I use this generator https://10015.io/tools/svg-blob-generator ....
frontcodelover's user avatar
8 votes
1 answer
10k views

How to Rotate Clip Path without rotating image?

I have an image with CSS property clip-path. I have added animation to rotate the clip path. I want to only rotate clip-path, not the image. From below code, you can get an idea of what I want to ...
Arsalan Khattak's user avatar
4 votes
1 answer
7k views

How to apply clipPath to a div with the clipPath position being relative to the div position

Not sure if I've formulated the title properly, but here goes the question. I have an SVG path of a cloud-like shape which I would like to use in CSS with the clip-path property. <path d="M46....
Lazar Vuckovic's user avatar
1 vote
1 answer
636 views

Rounded bottom div where curve angle is not responsive

I'm using a clip-path to create a div with a rounded bottom, i.e.: clip-path: ellipse(80% 60% at 50% 40%); As the viewport width get smaller and smaller, the angle of the curve becomes more and more ...
wsSteve's user avatar
  • 13
35 votes
4 answers
38k views

Is it possible to have multiple masks with clip-path?

Hi, I wonder whether it's possible to use more than one mask on the same element, just like this: clip-path:polygon(8% 0%, 8% 7%, 14% 12%), polygon(96.4%, 92% 96.4%, 97% 92.3%), polygon(97% 15%, 99% ...
Cain Nuke's user avatar
17 votes
3 answers
27k views

How to make clip-path work on Microsoft Edge?

While making a clipped header for Firefox and Microsoft Edge(ME), I used clip-path. It works in Firefox just by putting clipPath element inside an SVG element and a clip-path style inside the HTML ...
Kenny Amaro's user avatar
10 votes
1 answer
13k views

How to Apply a Clipping Path to a DIV Container

I'm attempting to build a kind of progress bar, similar to what Chris Coyier does here: https://css-tricks.com/css3-progress-bars/, except that I want to apply a SVG clipping path to the surrounding ...
Ryan's user avatar
  • 313
7 votes
2 answers
7k views

clip-path does not work with chrome

I have problem with clip-path in Chrome. Firefox has no problem and shows this html page correctly, but chrome doesn't show anything. img { -webkit-clip-path: url(#clipping); clip-...
Saman Mohamadi's user avatar
7 votes
2 answers
25k views

Why does svg <use xlink:href="#"/> referencing an element with clip-path not work?

When implementing an SVG sprite, an <svg> element is created and svg elements are referenced via the <use> element. The containing <svg> element is then hidden using style="display: ...
Betsy Dupuis's user avatar
5 votes
0 answers
2k views

Svg clipPath to clip a div doesn't work in Safari when i duplicate it

I have created a clip path that I reuse on multiple divs in the page. I use the property clipPathUnits="objectBoundingBox" to make it apply to each div based on its position. It works great in Chrome ...
Jalil's user avatar
  • 51
4 votes
1 answer
4k views

Is it possible to make a SVG clipPath with a <path> responsive?

I am trying to make a responsive SVG with a bitmap pattern and a sort of complex shape with clipPath. If I use a <polygon> instead of a <path> to create simpler shapes they are responsive,...
edrpls's user avatar
  • 317
3 votes
3 answers
709 views

Reduce spacing between two clipped images

I am using clip-path to clip two images. The result is Everything is fine but I want to reduce the spacing between these images just like this .clip-wrap { display: inline; } .element { -...
amansoni211's user avatar

15 30 50 per page