jnutt367 Posted April 16, 2021 Share Posted April 16, 2021 I have followed the best I can up to writing in the code for ` scrub:1;` I am having trouble understanding how my c class isn't behaving the same as in Carl's video. It just carries on like scrub was not there? https://jnutt367.github.io/ScrollTrigger/scrollTrigger.html ` gsap.registerPlugin(ScrollTrigger); gsap.to(".c", { scrollTrigger: { trigger: ".c", start: "top center", end: "top 100px", scrub: 1, markers: true }, x: 400, rotation: 360, ease: "back", duration: 5 }); ` Link to comment Share on other sites More sharing options...
jnutt367 Posted April 16, 2021 Author Share Posted April 16, 2021 I am very embarassed now. It is because scrub was not there lol. I was checking one commit behind. Sorry to waste your time everyone haha Link to comment Share on other sites More sharing options...
GreenSock Posted April 17, 2021 Share Posted April 17, 2021 No problem, @jnutt367! Glad you figured it out. 👍 1 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