Jump to content
Search Community

ScrollTrigger - not running using timeline.add()

josh-warner test
Moderator Tag

Recommended Posts

Hi all!

 

I have been upgrading a site to gsap v3 and switching out my ScrollMagic code for ScrollTrigger code (ScrollTrigger btw is amazing so thanks a lot!).

 

I am trying to run a timeline().add() method on the TL to fire a custom function but it refuses to fire unless I add another tween to the timeline like a to() method or the like. 

 

Code pen with this issue attached, just curious if I am going about this the wrong way or is there a bug here? I tried using ScrollTrigger.create() directly instead but I had the same issue where it refused to fire my function.

 

Thanks again, you guys have done a great job with gsap and all its plugins.

See the Pen jOWbQjO by josh-kiwi (@josh-kiwi) on CodePen

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