Jump to content
GreenSock

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

SVG Animation Frames

Go to solution Solved by OSUblake,

Recommended Posts

Question: How would you generate a GSAP animation as an image sequence that uses repeat and yoyo where it also generates the image sequence of the animation going backwards before it replays the animation again? (aka: not re-appending the images composed of the overall animation)

 

See CodePen demo for an example I found years ago: 

See the Pen JKEjLb?editors=0010 by osublake (@osublake) on CodePen

Link to comment
Share on other sites

  • Solution

You would use totalDuration instead of duration. I only added yoyo and repeat to that demo so people could see it play again because it was so short.

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