Kutalev Posted July 19, 2020 Share Posted July 19, 2020 Hi! I'm trying to pin an element with all content above and under during some animation, like changing background color, but rather I didn't understand it correctly or something wrong with the behavior. Could you, please, help with the problem :) See the Pen qBbQgXy by kutalev (@kutalev) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted July 19, 2020 Share Posted July 19, 2020 If I understand your goal correctly, just change pin: true to pin: ".container" 1 1 Link to comment Share on other sites More sharing options...
Kutalev Posted July 19, 2020 Author Share Posted July 19, 2020 Wow, it really did the thing! Thanks a lot! )) 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