Jump to content
GreenSock

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

Update/Refresh start value after pin spacer added

Recommended Posts

Hello,

 

I'm trying to refresh my button animation without having to put it after the main animation (it's my paradigm). As you can see the start marker is situated where the button was before the pin spacer of the main animation was added.

 

Thanks for your help

See the Pen OJNKKKx by olig (@olig) on CodePen

Link to post
Share on other sites

Hey @oligsap

 

 

You could do that by simply adding a

 

refreshPriority: -1

 

to your button-ScrollTrigger.

 

 

See the Pen vYKYxeq by akapowl (@akapowl) on CodePen

 

 

Check this section in the Most Common Mistake article for more info

 

 

 

Hope this helps.

Cheers,

Paul

 

 

 

  • Like 3
Link to post
Share on other sites

Hi Paul,

 

Thanks for the help, it solved my problem. Sorry for that I'll check into these mistakes, I didn't even know I was making one.

 

Cheers

Link to post
Share on other sites
8 minutes ago, oligsap said:

Sorry for that I'll check into these mistakes, I didn't even know I was making one

 

Hey @oligsap

No need to apologize.

 

Just to make sure:

I was not intending to point a finger at someone.

 

Most people (including myself) do not even realize when they make mistakes regarding ScrollTrigger.

 

I just wanted you to know, that this very helpful page exists -

it's always a good starting point to check, when things do not work as expected with ScrollTrigger.

 

Happy Scrolling :)

 

  • Like 4
Link to post
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.

×