Jump to content
Search Community

Is it possible that convent svg with gsap to pixijs?

Kivan test
Moderator Tag

Recommended Posts

Hi,

 

That can be done with PIXI, but drawing in PIXI is not super simple:

https://pixijs.io/examples/#/gsap3-interaction/gsap3-trail.js

 

That is not the actual code but is an example of updating a particular shape, in your case we're talking about an arc. Then you can update that animation using a Draggable instance:

See the Pen qBLONEW by GreenSock (@GreenSock) on CodePen

 

Finally you can check this example by @PointC

See the Pen NmqowR by PointC (@PointC) on CodePen

 

That is using old syntax, you can check this migration guide in order to convert it to new syntax and plugins:

 

Hopefully this helps.

Happy Tweening!

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