kf420 Posted July 27, 2022 Share Posted July 27, 2022 Is it possible to pin a section within horizontally scrolling container? I know I can "fake" it with a timeline, but was wondering if there is a more automated way. See the Pen WNjaxKp?editors=0010 by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted July 27, 2022 Share Posted July 27, 2022 No, that isn't possible, as indicated in the docs. Sorry. You could try to fake it by animating the "x" value of an element at the same speed in the opposite direction, but that's tricky especially in responsive layouts where the distance changes based on the width of the screen. 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