Jump to content
GreenSock

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

Animated png sequence

Recommended Posts

Hi everyone,

 

Just trying to get a simple 3 frame animation happening with this dancing girl as an example to be used in an MREC.

 

It's working perfectly except for the end of the animation where it flickers off.

 

I would like it to play all 3 frames and then return to the start to play again.

 

Any help is appreciated!

 

Thank you.

See the Pen GbmBZR by phillipanthonyvale (@phillipanthonyvale) on CodePen

Link to comment
Share on other sites

It looks like you just have some numbers wrong, like an extra frame. Try this: 

 

TweenMax.to('.character2', .25, {repeat: -1, yoyo: true, repeatDelay: .15, x: -600, ease:SteppedEase.config(2)});

 

  • Like 1
Link to comment
Share on other sites

Oh man, thank you Jack.

 

So i only need the x: -600 because i don't need to count the first frame. And i don't count the first step so the config is (2).

Link to comment
Share on other sites

Exactamundo :)

  • Like 2
  • Haha 1
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.
×