uxyi Posted August 21, 2023 Share Posted August 21, 2023 I am new to GSAP I want the .backdrop to turn black when you scroll to the .ending div but i cant do that accurately as the markers wont appear markers are set to true however, they dont appear See the Pen ZEVEpmR?editors=1010 by Uxyi (@Uxyi) on CodePen Link to comment Share on other sites More sharing options...
Solution NickWoodward Posted August 21, 2023 Solution Share Posted August 21, 2023 Think you need to register scrolltrigger before you use it bud gsap.registerPlugin(ScrollTrigger); Either way, that got the markers working for me 3 Link to comment Share on other sites More sharing options...
akapowl Posted August 21, 2023 Share Posted August 21, 2023 Yes, Nick is right 👍 In your case you definitely need to register ScrollTrigger because you are loading the ScrollTrigger JS first and then the GSAP JS in your demo. You could also just flip the order of the scripts to be loaded, so you load the GSAP JS before you load the ScrollTrigger JS. And even then, registering the plugin can't hurt. Welcome to the forum by the way, @uxyi 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now