Ivan Mocs Posted June 4, 2023 Share Posted June 4, 2023 Here I have elements with different widths, but I have a problem that the end of the element is not at the edge of the page, how do I make it stop at the edge of the page? See the Pen QWJLbZa by adeivan (@adeivan) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted June 4, 2023 Share Posted June 4, 2023 You mean like this?: See the Pen wvQwowM by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Ivan Mocs Posted June 5, 2023 Author Share Posted June 5, 2023 Yep, thanks See the Pen qBQWrdX by adeivan (@adeivan) on CodePen Can horizontal scroll use scrolltrigger? I use scroll trigger to display section name but scrolltrigger seems to start from top to bottom not from left to right? if I create vertical content section name works fine, but for horizontal scroll it only reads 1 section. Link to comment Share on other sites More sharing options...
Solution GreenSock Posted June 5, 2023 Solution Share Posted June 5, 2023 Sounds like you're looking for the containerAnimation feature: See the Pen poQzPeW?editors=0010 by GreenSock (@GreenSock) on CodePen It's all in the docs. 2 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