Jump to content
Search Community

GSAP 3 drag and draw along path

ONELINE test
Moderator Tag

Recommended Posts

Hey there!

 

Your SVG markup is a little bit chaotic. With a rect element this works fine.

See the Pen vYdGwjv?editors=1010 by GreenSock (@GreenSock) on CodePen



You have a lot of inline transforms which will sometimes throw off calculations and shift where the element is. There are a lot of shapes making up the car too. I'd recommend simplifying it, running SVG's through SVGOMG, or even just saving the car out as an image and using an image tag in the SVG. A good clean starting point is always helpful!

https://jakearchibald.github.io/svgomg/

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...