PG1 Posted October 18, 2020 Share Posted October 18, 2020 I am trying to animate the aeroplane svg along my line path. It seems that regardless of the orientation of the aeroplane when the page renders, the tween always grabs it and applies it at a slight slant (it's not facing directly forward on the path). Does anyone know how I control it? Not having any luck with transform: rotate. Cheers See the Pen dyXXObR by petegarvin1 (@petegarvin1) on CodePen Link to comment Share on other sites More sharing options...
PG1 Posted October 18, 2020 Author Share Posted October 18, 2020 Also - I note from other forum posts that dashed paths weren't supported by the plugin (although some workarounds were offered), has this changed recently? Those posts were a few years old Link to comment Share on other sites More sharing options...
PointC Posted October 19, 2020 Share Posted October 19, 2020 You could try setting your autoRotate to something like 25°. autoRotate: 25, You do have some sharp turns in there so it will still be a bit jumpy. 3 hours ago, PG1 said: Those posts were a few years old That info is still accurate. You'll want to use a mask to animate a dashed path. I have a whole tutorial about the technique on my training blog. https://www.motiontricks.com/svg-dashed-line-animation/ Hopefully that helps. Happy tweening. 5 Link to comment Share on other sites More sharing options...
mikel Posted October 19, 2020 Share Posted October 19, 2020 ... or this could be an option See the Pen PozzmaV by mikeK (@mikeK) on CodePen Happy flying ... Mikel 3 Link to comment Share on other sites More sharing options...
PG1 Posted October 19, 2020 Author Share Posted October 19, 2020 8 hours ago, PointC said: You could try setting your autoRotate to something like 25°. autoRotate: 25, You do have some sharp turns in there so it will still be a bit jumpy. That info is still accurate. You'll want to use a mask to animate a dashed path. I have a whole tutorial about the technique on my training blog. https://www.motiontricks.com/svg-dashed-line-animation/ Hopefully that helps. Happy tweening. Brilliant article - got my dashed line working in no time - thanks so much! 1 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