I have a basic horizontal scroller as shown in the CodePen. It works as expected in the codepen.
For some reason, when I try to use this exact same setup in my local project, there is some strange behavior. The '.my-container' element, aka the pinned element, has a y transform being applied which is exactly equal to the 'end' pixels as soon as the animation is triggered. In other words, as soon as the animation is triggered, the pinned element is transformed 500px down the screen.
Has anyone seen this behavior before? I've spent about 6 hours troubleshooting and can't seem to figure this one out. Even worse is that I can't recreate the bug on codepen...
Here is a video of the bug on my local setup.
Screen Recording 2023-12-18 at 9.08.17 AM.mov