Jump to content
Search Community

Is it possible to modify the points along a path?

sinobra test
Moderator Tag

Go to solution Solved by akapowl,

Recommended Posts

I have seen lots of examples where entire objects (paths) are moved.  But is it possible to modify some points along a path?  For example if I have a line with a path, 

 

 d:"M 92.0,40.0 171.0,40.0"

 

would it by possible the change the endpoint to something like:

 

 d:"M 92.0,40.0 171.0,90.0"

 

Link to comment
Share on other sites

  • Solution

@sinobra 

Welcome to the forums.

 

Sure, using the AttrPlugin baked into GSAP's core, that is pretty much doable.

 

Core plugins are similar to plugins for GSAP in their structure but are included in GSAP's core and don't have to be loaded using gsap.registerPlugin(). You can think of them as just a part of GSAP.
 


...just to say so you wouldn't even have to load anything else but e.g. the gsap.min.js for using it.

 

See the Pen 85ce08b334c1c324bb15c092277f2e8a by akapowl (@akapowl) on CodePen

  • Like 4
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...