Jump to content
GreenSock

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

How to setup two tween for the same element?

Go to solution Solved by OSUblake,

Recommended Posts

I want to setup two tween for the same element, in the codepen, the h1 set as gsap.from, the text fade in and move from right, then in next tween gsap.to I want the text scale up and fade out.

 

The first tween seems work, but no effect in the second tween. Any idea? Thank you.

See the Pen GRvqLmL by fredlim (@fredlim) on CodePen

Link to comment
Share on other sites

  • Solution

Hi flim, 

 

Check out this post about immediateRender.

 

 

  • Thanks 1
Link to comment
Share on other sites

I got desire result after added immediateRender: false in the 2nd tween. Thank you.

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