admin管理员组

文章数量:1023744

I tried to morph 2 SVGs with Flubber on click with Framer motion, it worked, but not as expected.

The first click on the 'Hi" div triggered a change in the open state from 0 to 1, but it didn't animate the SVG. Another click event on the div did. But now the 'open' and 'progress' are not in sync.

Here's the codesandbox link to demonstrate my working code: =%2Fsrc%2FApp.tsx%3A12%2C24

How can I solve this?

Thanks in advance...

I tried to morph 2 SVGs with Flubber on click with Framer motion, it worked, but not as expected.

The first click on the 'Hi" div triggered a change in the open state from 0 to 1, but it didn't animate the SVG. Another click event on the div did. But now the 'open' and 'progress' are not in sync.

Here's the codesandbox link to demonstrate my working code: =%2Fsrc%2FApp.tsx%3A12%2C24

How can I solve this?

Thanks in advance...

本文标签: Morphing SVG with FLubber and Framer MotionStack Overflow