Jump to content
GreenSock

jstafford

Last event in timeline not firing off?

Go to solution Solved by Diaco,

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, this last event in my timeline is not firing off. I just want this second square which is blue to go from opacity 0 to 1 at 10 seconds in the timeline. So, I used the tl.from event and made it coming from opacity 0, right? Where am I going wrong?

See the Pen XmKVGx by jstafford (@jstafford) on CodePen

Link to comment
Share on other sites

  • Solution

Hi jstafford  :)

 

pls fix these issues in your pen :

 

- in your css , pls fix by adding a semicolon at the end : 

background: #0000FF ; 

- in js , your tween should be like this : 

 .from($("#square2"),1.5,{autoAlpha:0}, 10);
Link to comment
Share on other sites

: / ; yes, I want it to fade in so it comes "from" 0. I think I changed that to 1 in frustration. Apologies on the semicolon. I think this was my actual problem. Thanks again Diaco.

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