pattocheu Posted January 19, 2022 Share Posted January 19, 2022 Hi Everybody, I've found the topic from @mikel regarding "Rotate Element on Scroll". I've tried to implement the same idea with a container animation (horizontal scroll). I am having some problems getting this one to work properly. Thak you for your help. Patrick. See the Pen VwMyagQ by pattocheu (@pattocheu) on CodePen Link to comment Share on other sites More sharing options...
Solution elegantseagulls Posted January 19, 2022 Solution Share Posted January 19, 2022 I'm not sure why this is, but changing scrub to true instead of 0.2 seems to fix the issue. Is this expected behavior @GreenSock (cc: @OSUblake @Cassie)? 1 1 Link to comment Share on other sites More sharing options...
pattocheu Posted January 19, 2022 Author Share Posted January 19, 2022 Thank you @elegantseagulls this modification fix the issue. Link to comment Share on other sites More sharing options...
GreenSock Posted January 20, 2022 Share Posted January 20, 2022 Good catch. I never really anticipated that someone would compound scrubbing like that where you've got a scrub on the containerAnimation AND on top of that another scrub on the ScrollTrigger that's watching that containerAnimation. Seems odd, but I guess it could make sense in some situations. It should be resolved in the next release which you can preview at https://assets.codepen.io/16327/ScrollTrigger.min.js But for now, I'd recommend scrubbing one or the other, not both 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