Share Posted November 12, 2021 https://codesandbox.io/s/zen-sunset-jf3fm?file=/src/App.js When motionPath{ start: 0.5, end: -0.65, } Animation fires twice, how to fix it in React? Because, I need the element to start moving near the start and end at the finish https://prnt.sc/1zbakcb And how to align so that the movement follows the path of the road Link to comment Share on other sites More sharing options...
Share Posted November 12, 2021 Welcome to the forums @JIZA 23 minutes ago, JIZA said: Animation fires twice, how to fix it in React? I'll need to check on that behavior, but the easiest solution is to just draw your SVG path at the correct start and end points. Another option is to animate the progress of the timeline like this. https://codesandbox.io/s/red-brook-xvwi9?file=/src/App.js 1 Link to comment Share on other sites More sharing options...
Share Posted November 12, 2021 7 minutes ago, OSUblake said: I'll need to check on that behavior Yes, it looks like that issue will be fixed in the next release. 1 Link to comment Share on other sites More sharing options...
Author Share Posted November 12, 2021 43 minutes ago, OSUblake said: Welcome to the forums @JIZA I'll need to check on that behavior, but the easiest solution is to just draw your SVG path at the correct start and end points. Another option is to animate the progress of the timeline like this. https://codesandbox.io/s/red-brook-xvwi9?file=/src/App.js Thank you very much. You have a great library, I recently started using and learning about it. Cool😍 1 1 Link to comment Share on other sites More sharing options...
Author Share Posted November 14, 2021 Amazing! Very cool library. And thanks for the support! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now