Jump to content
GreenSock

phillip_vale

Animated png sequence

Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

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