Jump to content
Search Community

Have animations start when next button is clicked

mrsosa247 test
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

I was messing around with the javascript GSAP and I made a next button to go to next html page. My problem is all my animations start at the same time instead of after the next button is pressed. So when I do press next the animations are done. There is obviously something I missing here. Any help?

Link to comment
Share on other sites

Hello mrsosa247, and Welcome to the GreenSock Forums!

 

There could be a number of things that might be causing that behavior.

  • Are you loading the latest version of GSAP?
  • Are there any errors in the browser console?
  • If its a from() tween? .. you may need to add immediateRender: false

But without seeing your HTML, CSS, and JS, its very difficult to know what exactly is the issue.

 

So to better help you and see what you seeing, can you please create limited codepen demo example so we can see your code in context and in action.

 

Here is a video tut by GreenSock on How to create a codepen demo example.

 

We are willing to help but we need to see your code in context... Thanks! :)

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