@Rodrigo,
Hi again,
I'm running into some more issues with this implementation.
When I use the click function here:
buttons.forEach((btn, i) => {
btn.addEventListener("click", () => {
gsap.to(window, {
scrollTo: {
y: tl.scrollTrigger.labelToScroll("section-" + i)
},
ease: "power1.inOut"
});
});
});
Occasionally the transforms on sections don't hit the whole percentage numbers they're aiming for, causing the sides of div to not line up correctly to the container.
For example:
The first div ends here: transform: translate(-99.9166%, 0%) translate3d(0px, 0px, 0px);
Instead of ending here: transform: translate(-100%, 0%) translate3d(0px, 0px, 0px);
Do you have any idea why this could be happening? Maybe due to resizing with browser inspector tools open?
Cheers