Jump to content
Search Community

Bezier Plugin Question

jstafford test
Moderator Tag

Go to solution Solved by Diaco,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi, I was wanting to draw a car sliding down a curve. The car is already an svg image but I was thinking I need to render a "linear bezier path" with the GSAP Bezier plugin so that I can have precise control in how the car makes contact with the line thoighout the GSAP Bezier animation. My approach would be two have two parrallel paths, one in which the car traverses and another below that is drawn and makes contact with the car's tires throughout. This is crazy, but I have never just drawn a line with GSAP (HTML5 yes). How would I draw the actual linear path that the svg car's tires are contacting. I am more familiar with how to do this in HTML5, but would like to see GSAP's way of rendering a straight line and matching these coordinates up to the svg sprite motion.

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...