Jump to content
Search Community

Animate path points in canvas/Pixi.js

marcodellabate test
Moderator Tag

Recommended Posts

Hello,
I am trying to achieve something very similar to the codepen but with PixiJs instead of SVG.
I can't find recent or accurate information on how to animate paths through GSAP into PixiJs v5, I can only find information about animating the drawing of a line, but not about tweening the points themselves.

More specifically, what I'm trying to achieve is to tween the position of the mid point of a bezier curve made up of 3 points.

 

Can anyone give me a lead?
Thanks :) much appreciated

 

See the Pen MazWqb by chrisgannon (@chrisgannon) on CodePen

Link to comment
Share on other sites

See the Pen vYKaBXq by shiedesign (@shiedesign) on CodePen



This is basically what I want to do, these are the two eyelids (they are coded so that they take up the whole viewport in width and height). What I want to achieve mainly is to Tween the arcs so that they morph from an horizontal line to the arc shown in the codepen.
The type of animation is very similar to the pen in the first post: an horizontal line that draws from left and then the eye that opens.

Is there any way to animate the control points directly through gsap?

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