CSS Masking & Clipping
CSS Masking & Clipping — Create visual effects with CSS masking and clipping — mask-image, clip-path, and their practical applications. The guide walks through Clip Path Basics, Advanced Clip Path, CSS Masking, Practical Examples. clip-path creates a clipping region — anything outside is invisible. Basic shapes: clip-path: circle(50%), clip-path: ellipse(25% 50%), clip-path: inset(10% 20%), clip-path: polygon(50% 0%, 100% 50%, 0% 50%). Polygon accepts comma-separated coordinate pairs. Use percentage values for responsive clipping. Create complex shapes with polygon: clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 100%, 0% 100%) — a folded-corner effect. Animate clip-path with transitions or keyframes for reveal effects. Use path() for SVG-style paths: clip-path: path("M0,0 L100,0 L100,100 Z"). Use tools like clippy.css to generate clip-path values visually. The guide is organized into 4 sections that build on each other, each pairing a prose explanation with real CSS you can use as-is. Related guides: CSS Introduction, CSS Selectors, CSS Box Model, CSS Flexbox, CSS Grid.