![]() |
VOOZH | about |
The clip-path property of CSS is used to clip the particular section of the image such that part of the image inside the section is shown and part of the image outside the section is not shown. and the CSS clip-path property allows you to create custom clipping paths to define the visible portion of an element. It can be used to create various shapes such as circles, polygons, or even complex paths. This property is commonly used for creating unique and non-rectangular layouts or image masks on the web.
Syntax:
clip-path: <clip-source> | <basic-shape> | <geometry-box> | none;
Property value: All the properties are described well in the example below.
Example 1: This example displays the basic use of the clip-path property to insert the specific shapes that clip the given image.
Output:
Example 2: This example displays the basic use of the clip-path property where the value is set to none.
Output:
Example 3: This example displays the basic use of the clip-path property where the property value is set to a url.
Output:
Browsers supported: