TerraHQ Posted December 30, 2021 Share Posted December 30, 2021 hello !, I'm trying to get the full width of the container, it doesn't return the value as expected. It is very likely that I'm doing something wrong. Attached 2 pens, one "without gsap" and another with gsap. Thanks a lot! Thanks in advance Link to comment Share on other sites More sharing options...
Solution OSUblake Posted December 30, 2021 Solution Share Posted December 30, 2021 I removed your pens because of the annoying alerts. Please do console.log next time. And the answer to your question is already in your code 😉 container.scrollWidth https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollWidth See the Pen mdBXoBG by GreenSock (@GreenSock) on CodePen 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