Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
ryanf

BezierPlugin without the curve

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

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