slebbo Posted November 11, 2020 Share Posted November 11, 2020 Is it possible to have the Timeline's playhead scrubbed before the element is getting pinned? So what I want is: animation: start: "top center" end: "bottom center" pin: start: "top" end: "bottom" Or can the same result be achieved some other way? See the Pen abZQRrV by slebbo (@slebbo) on CodePen Link to comment Share on other sites More sharing options...
Solution akapowl Posted November 11, 2020 Solution Share Posted November 11, 2020 Hey @slebbo For something like that, you could set up two individual ScrollTriggers; One that handles only the animation, and another one that handles only the pinning. See the Pen 7aafdfd005d9d487fb1764cd5d85285c by akapowl (@akapowl) on CodePen Welcome to the forums. Hope this helps. 3 Link to comment Share on other sites More sharing options...
slebbo Posted November 11, 2020 Author Share Posted November 11, 2020 Thanks a lot, exactly what I need. Didn't even think about that but it makes perfect sense 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