New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable pathLength animations for more SVG shapes #1325
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 54ae9a4:
|
a5b92cb
to
c508c62
Compare
4c22f93
to
54ae9a4
Compare
I'm not sure this is the best way to get my issue fixed, but I think that a problem I am having aligns mostly to this previously flagged issue. I'm using framer-motion to animate a simple path with a start point, end point and two control points from 0 to 1 in length. The animation works smoothly and correctly but when I add It seems from this issue that it should have been solved long ago, but maybe something was broken recently? |
I am wondering if the issue is related to the fact that the path animates from I am using |
Instead of measuring path length with
getTotalLength
, we now set thepathLength
attribute to1
.This change:
vector-effect="non-scaling-stroke"
appliedpath
tocircle
,ellipse
,line
,polygon
,polyline
andrect
componentspathLength
Fixes #521