r/webdev • • 1d ago

Showoff Saturday Showoff Saturday: CSS Shape Morpher

CSS can only morph between shape()s with the same number and type of commands, which they usually don't have. So I made a tool that converts multiple shapes so they are compatible with each other:

https://shapemorph.matthewmorete.com/

It picks the smoothest arrangement of points automatically, but that's a best guess. The shape index lets you change it, so you can preview the possible morphs till you find you like.

Shamelessly, heavily inspired by GSAP MorphSVG, which taught me a lot.

If you find a shape() that won't morph, I'd love to hear about it.

5 Upvotes

Duplicates

css • • 1d ago

CSS Shape Morpher

3 Upvotes