Jump to content


Rotation on scroll

Go to solution Solved by elegantseagulls,

Recommended Posts

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.



See the Pen VwMyagQ by pattocheu (@pattocheu) on CodePen

Link to comment
Share on other sites

  • Solution

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)?

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

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 :)

  • Like 1
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.