samlinck Posted December 3, 2020 Share Posted December 3, 2020 Hi everybody, It's my first timing using scrolltrigger and i have an issue that i can't seem to solve. I want to animate scroll effects inside the pinned blue container, like the white bg sliding over the blue one. But the pinning of the container creates a space above and beneath while scrolling through page. Long story short, i want the green blocks to stay in place. Right above and beneath the container. Please help See the Pen KKgVVMg by Samlinck (@Samlinck) on CodePen Link to comment Share on other sites More sharing options...
Solution ZachSaucier Posted December 3, 2020 Solution Share Posted December 3, 2020 Hey samlinck. If you want the green sections to remain pinned, I recommend pinning a container of both the green and blue sections pin: ".container" 3 1 Link to comment Share on other sites More sharing options...
samlinck Posted December 3, 2020 Author Share Posted December 3, 2020 @ZachSaucier sometimes it's just easy! Thank you very much! 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