Share Posted October 12, 2022 Hello, I am making an infinite scroll animation. It works great on initial look, and actually is hard to tell in the code pen, but gets a "jump" after resizing the window. You can probably notice it better here: https://marquee-207786.webflow.io/ which is running the same code. Is there a way to recalculate the distanceToMove variable on each repeat? I tried the onRepeat function but didn't have any luck there. I also tried passing a function to the translateX parameter and returning the value there but didn't work either. I threw it in to the code pen so I could post my question here but it actually works pretty well in the codepen even after resize 😭. Anyways, figured I would ask to see if anyone has any tips. Thanks! See the Pen bGMOYzG by learyjk (@learyjk) on CodePen Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now