CSS clip-path Playground

Mrs. Lastri cuts a cloth on her work table: circle, ellipse, inset or a polygon with pins you drag, then elementsFromPoint answers where a tap on the cut-away…

Why it matters

clip-path makes non-box shapes (avatars, diagonal sections, arrows, stars) in plain CSS, can be animated, and cuts the click area too. It replaces plenty of extra images and SVGs.

The key idea

clip-path hides what lies outside the shape, it does not change the box

Common mistakes

Try it in this playground