Jump to content
Search Community

Why are my first two tweens not firing simultaneously?

SamStAubyn
Moderator Tag

Recommended Posts

Posted

I'm trying to fire the first two tweens simultaneously, so the blob and the text should scale away at the same time, but they always fire one after another, how can I fix this?

See the Pen WNmPZaJ by SamStAubyn94 (@SamStAubyn94) on CodePen.

Posted

I'm an idiot, I didn't have my option within the function bracket so it wasn't being detected....

 

For reference for those who discover it - it should be as follows:

 

tl.to(".cover-content", {
    scale: 0,
    duration: 0.5,
    x: 0,
}, "<");
Posted

Hi @SamStAubyn welcome to the forum!

 

Don't worry about it, we've all been there! I once spend two days with a colleague debugging a piece of code that returns some data and because it was encoded with a an extra space at the end it was not working!  Glad you've solved your issue.

 

Happy tweening!  

 

 

  • Like 1
  • Haha 1

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