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
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