Jump to content
GreenSock

kabocreative

Scroll Trigger animation playing when outside of trigger

Go to solution Solved by Cassie,

Recommended Posts

Hi again!

 

I've another 'I'm sure there's an obvious answer but I'm not getting it' problem...

 

I have a simple timeline I'd like to play only when in view. Timeline is hooked up to Scroll Trigger and set to repeat via Scroll Trigger.

 

My problem is it keeps playing when outside of the trigger section:



Help very gratefully received :)

See the Pen GRxeEyZ by kabocreative (@kabocreative) on CodePen

  • Like 1
Link to comment
Share on other sites

  • Solution

Heya! Typo - toggleActions, not triggerActions. 🙂

  • Like 2
  • Haha 2
Link to comment
Share on other sites

Oh I didn't... I did... I spent an embarassingly long period of time trying to debug that one. Thanks Cassie!

  • Like 2
Link to comment
Share on other sites

Are there any typos? The debugging question we all wish we'd asked earlier at one point or another!
 

 

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