Comments on: clip-path https://css-tricks.com Tips, Tricks, and Techniques on using Cascading Style Sheets. Thu, 22 Jul 2021 18:49:08 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: Jabba the Hutt https://css-tricks.com/almanac/properties/c/clip-path/#comment-1776890 Thu, 22 Jul 2021 18:49:08 +0000 http://css-tricks.com/?page_id=14041#comment-1776890 So useful!

]]>
By: Anurag https://css-tricks.com/almanac/properties/c/clip-path/#comment-1767712 Wed, 27 Jan 2021 18:43:44 +0000 http://css-tricks.com/?page_id=14041#comment-1767712 While clip image is the position of an image change from static to relative. If not then why it become visible.

]]>
By: Mads Stoumann https://css-tricks.com/almanac/properties/c/clip-path/#comment-1767151 Sun, 10 Jan 2021 08:44:00 +0000 http://css-tricks.com/?page_id=14041#comment-1767151 If you need regular, equal-sided polygons – from a 3-sided triangle to a 100-sided hectogon – I’ve made a new tool just for this:

https://codepen.io/stoumann/pen/MWjBRJv

It also has an “inset”-option, which creates a mid-point on a polygon-side, which can be dragged inwards (for cool effects and animations!). There’s live-output of code, for both clip-path and SVG.

]]>
By: Scott Rod https://css-tricks.com/almanac/properties/c/clip-path/#comment-1756491 Fri, 08 May 2020 14:16:07 +0000 http://css-tricks.com/?page_id=14041#comment-1756491 Is there a converter to translate absolute values to percents for responsive clipping paths for path?

]]>
By: Dave https://css-tricks.com/almanac/properties/c/clip-path/#comment-1750555 Wed, 07 Aug 2019 12:38:04 +0000 http://css-tricks.com/?page_id=14041#comment-1750555 As of August 2019, MS Edge officially still does not yet support clip-path: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/18788318/

Their page (and their internally-linked documentation) is a joke. In some places support is “shipped” and “supported”, but then in others it’s stated as not supported at all.

I, like my many friends here, am loathed to continue hacking my pages using SVG for Microshaft compatibility. I’ve spent a career hacking up my clean HTML for the benefit of Microsoft browsers.

As we say in the UK, the left-hand doesn’t know what the right-hand is doing within their halls.

Shame on them. Why they haven’t just scrapped IE and Edge is beyond us all. </rant>

]]>
By: bhavesh https://css-tricks.com/almanac/properties/c/clip-path/#comment-1653239 Wed, 14 Nov 2018 12:12:13 +0000 http://css-tricks.com/?page_id=14041#comment-1653239 the text gets disappeared from my polygon when I zoom-in I am new to styling would surely be glad to seek your inputs
-webkit-clip-path: polygon(0 51%, 100% 72%, 100% 100%, 0% 100%);
clip-path: polygon(0 51%, 100% 72%, 100% 100%, 0% 100%);

]]>
By: Dillan Simmons https://css-tricks.com/almanac/properties/c/clip-path/#comment-1609582 Tue, 27 Jun 2017 04:10:55 +0000 http://css-tricks.com/?page_id=14041#comment-1609582 Clip path = no IE / Edge support. http://caniuse.com/#feat=css-clip-path. Edge has marked it as a medium priority addition… since 2014.

]]>
By: David Csejtei https://css-tricks.com/almanac/properties/c/clip-path/#comment-1608591 Mon, 15 May 2017 06:57:16 +0000 http://css-tricks.com/?page_id=14041#comment-1608591 What about clipping elements with background images?

Let’s imagine you have a div tag with simple (non repetitive) background image and want to cut the bottom of this tag. In addition a hover action is needed with 2px solid border. What would be a cross-browser and responsive solution?

Thanks for the great article!

]]>
By: Kiran https://css-tricks.com/almanac/properties/c/clip-path/#comment-1605419 Tue, 06 Dec 2016 08:14:53 +0000 http://css-tricks.com/?page_id=14041#comment-1605419 How to use the clip-path property for MS Edge browser? There seems to be no support.
Also for Mozilla, we have to enable the layout.css.clip-path-shapes.enabled flag to true in order to support this rule, but my end customer might not know that, any workaround for that?

Any help would be appreciated! :)

]]>
By: Jean https://css-tricks.com/almanac/properties/c/clip-path/#comment-1604625 Wed, 19 Oct 2016 15:05:22 +0000 http://css-tricks.com/?page_id=14041#comment-1604625 Hi there! Should I have to agree the -o- and -moz- prefix to make it work in non -webkit- browsers?

@keyframes rotacion-electrica {
-webkit-transition-timing-function: linear;
transition-timing-function: linear;
from {
-webkit-clip-path: circle(60% at 50% 50%);
clip-path: circle(60% at 50% 50%);
opacity: 0.9;
}
to {
-webkit-clip-path: circle(60% at 50% 50%);
-webkit-transform:rotate(0deg);
clip-path: circle(60% at 50% 50%);
transform: rotate(360deg);
opacity: 1;
}
}

Jean Phillip
http://www.iliiet.com/portal

]]>
By: Corby https://css-tricks.com/almanac/properties/c/clip-path/#comment-1603324 Tue, 09 Aug 2016 14:10:23 +0000 http://css-tricks.com/?page_id=14041#comment-1603324 nice little demo there! Also thanks for reminding me about this article. Sadly clip-path hasn’t progressed anywhere near to where I’d wanted it to have by now. Coincidentally I’m working on a site currently where this would have been incredibly useful. Sadly I’ll have to result to SVG’s, maybe one day soon!

]]>
By: Mattias https://css-tricks.com/almanac/properties/c/clip-path/#comment-1603323 Tue, 09 Aug 2016 14:04:43 +0000 http://css-tricks.com/?page_id=14041#comment-1603323 I put together a little demo of three different clipping techniques. Have a look at mattias.pw/pens/2016/08/08/clipping-101/.

]]>
By: M https://css-tricks.com/almanac/properties/c/clip-path/#comment-1597846 Thu, 05 Nov 2015 20:57:32 +0000 http://css-tricks.com/?page_id=14041#comment-1597846 Hi There,

clip-path ONLY works with a prefix in Webkit.. Perhaps such should be incorporated into this here article…

Also, the CSS implementation in most Browser is HIGHLY erratic and I suggest anyone that contemplates using Clipping in CSS – do it by simple wrapping the image or element in a surrounding DIV and setting THAT to overflow hidden and thus adjusting the DIV’s (which IS a rectangle) dimensions…

This works every time – in every browser….

Clip and clip-path IMPO should be avoided. At least until the people fumbling about with building web-browser, unite and agree…

Once again, a great proposition goes berserk !

]]>
By: Maxim https://css-tricks.com/almanac/properties/c/clip-path/#comment-1596773 Fri, 04 Sep 2015 09:17:13 +0000 http://css-tricks.com/?page_id=14041#comment-1596773 Hi. It’s work for swf content? It tried this for images but flash content is not clipped

]]>
By: Punit https://css-tricks.com/almanac/properties/c/clip-path/#comment-1593124 Wed, 11 Mar 2015 18:03:06 +0000 http://css-tricks.com/?page_id=14041#comment-1593124 it’s not validate for w3cvalidator, error like this Property clip-path doesn’t exist

.our-genius .style1 {
float:left;
position: relative;
/Chrome,Safari/
-webkit-clip-path: polygon(0px 424px,491px 500px,415px 0px,0px 0px);
-ms-clip-path: polygon(0px 424px,491px 500px,415px 0px,0px 0px);
/Firefox/
clip-path: url(“index.html#clipPolygon1”);
-moz-clip-path: url(“index.html#clipPolygon1”);
-moz-clip-path: polygon(0px 424px,491px 500px,415px 0px,0px 0px);
}

]]>