clip-path

The clip-path property lets you clip an element to a basic shape or to an SVG source.

Note: The clip-path property will replace the deprecated clip property.

The clip-path CSS property creates a clipping region that sets what part of an element should be shown. Parts that are inside the region are shown, while those outside are hidden.

img {
  clip-path: circle(50%);
}

Leave a comment

Your email address will not be published. Required fields are marked *