finoz Posted March 15, 2022 Share Posted March 15, 2022 Hi! I'm trying to set a scrolltrigger animation for my components, often pinning the elements. But if I set a pin for an element, the next one starts before the start I assign to it (in the demo). In my demo, I setup the .component-a scrollTrigger to start with a "top top", but in the second instance, positioned after the pinned component, starts the animation before being in the view. What am I doing wrong? Thank you! Finoz See the Pen jOYPamL by finoz (@finoz) on CodePen Link to comment Share on other sites More sharing options...
Solution OSUblake Posted March 15, 2022 Solution Share Posted March 15, 2022 Welcome to the forums @finoz You just need to create them in the order they appear in the DOM, so maybe something like this? See the Pen mdpJXWQ by GreenSock (@GreenSock) on CodePen 2 Link to comment Share on other sites More sharing options...
finoz Posted March 15, 2022 Author Share Posted March 15, 2022 Brilliant! thank you @OSUblake! 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