Jump to content
GreenSock

ryanf

BezierPlugin without the curve

Go to solution Solved by OSUblake,

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

Is there a method of getting the same functionality of the BezierPlugin, without curves?  

 

The functionality is perfect, I just want perfectly straight lines without the curves.  

 

The codepen shows an example with the BezierPlugin, and another example (without GSAP) that plots just the lines. 

 

 

Thanks!

 

 

See the Pen pjxjLN by anon (@anon) on CodePen

Link to comment
Share on other sites

  • Solution

Yup. Just set the curviness to 0 using type "thru". You can see it in action here. Set it to 0 and press create. I offset the tiles, but it's following a straight path.

 

http://embed.plnkr.co/CIiLR4/preview

  • Like 3
Link to comment
Share on other sites

Thank you for the reply.  

 

I have updated the pen:  

See the Pen pjxjLN by anon (@anon) on CodePen

 

It was some bad syntax.  

 

The docs straightened it up.  

 

Thanks again.  

  • Like 1
Link to comment
Share on other sites

Didn't know you could do a path with svg polyline.  That changes everything!  

 

Thanks so much.  

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