Jump to content
GreenSock

mimeartist

onComplete ?

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

I'm trying to get something to animate one way, and then back the other way... by calling the function that the call was in originally... but just not working, as you can see I'm decreasing the angle each time (albeit to the negative each time)

 

See the Pen jHrze by anon (@anon) on CodePen

 

What am I doing wrong?

 

The reason I want it as a function, is that I'd like to just call various flags whenever I want (the proper version will use an array of values) but trying to keep it simple for the code pen

Link to comment
Share on other sites

Thanks for the demo. onCompleteParams need to be formatted as an Array (to support multiple parameters)

 

onCompleteParams:[whichFlag]

  • Like 1
Link to comment
Share on other sites

I'm an idiot. Thanks! Was trying it in different orders and all sorts!

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