The
clip-pathCSS 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.
It mostly takes one <basic-shape> value, which can be one:
circle, rect, ellipsepolygon which uses a SVG filling rule and a set of verticespath which uses a SVG path definitionshape which uses shape commands for lines, curves, and arcsshape is a bit more robust than path as it allows percentage values and CSS units, which ultimately leads to a more responsive clip path.
https://developer.chrome.com/blog/css-shape
You can also use a SVG as a clip path source with url.
Note that the old keyword used to be clip, but that's now deprecated.