v149 · CSS · clip-path
Shape Animation Morph
Because shape() functions with the same command count interpolate smoothly, you can morph between complex shapes purely with CSS @keyframes. No JavaScript, no SVG SMIL — just two clip-path values and a transition.
choose shapes to morph between
0.8s
·
The key rule: both
shape() values must have the same number and type of path commands for the browser to interpolate between them. M + 3 L + Z can tween to another M + 3 L + Z — but not to M + 4 L + Z.generated CSS
/* select two shapes and press Play */
see also
- Shape Sculptor — compose shape() paths live
- Text Wrap Flow — shape-outside wrapping
- CSS shape() function index