#clip-path

[ follow ]
fromFrontendmasters
2 weeks ago

The `-path` of Least Resistance (Part 2)

Now it's time to break free from containment entirely. In this second part, we're shifting from shapes that hold things in place to paths that guide movement. We're moving from clip-path to offset-path, where your elements don't get clipped into new shapes, they travel along custom routes. We talk about reduced motion for accessibility later in this post, but not all the demos in this post implement that media query
Web development
#css
fromFrontendmasters
4 months ago
JavaScript

Creating Flower Shapes using clip-path: shape()

The shape() function in CSS revolutionizes shape creation by allowing curves and complex designs.
This article introduces the arc command as a starting point to utilize the new shape() function.
fromFrontendmasters
4 months ago
JavaScript

shape(): A New Powerful Drawing Syntax in CSS

The shape() function enhances CSS design options by allowing custom shapes for elements.
[ Load more ]