Jump to content
Search Community

A bit of trouble wit scrubbing

jnutt367 test
Moderator Tag

Recommended Posts

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

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...