Hi, i was trying to make the example Dynamic Content (500 Names, 2 Slides) infinitely loopable.
But it seems that the abs value is wrong when it's going in the negative range.
For instance, when the slide is swapped to the left the abs glitches from -2 to -4.
Here is my code:
https://codesandbox.io/p/devbox/compassionate-snow-d2q759?workspaceId=ws_MBzYrkk7MQx3BzWezLbpbP
For now i will use a huge number for the initial index, making it only works with positive abs.
Hi, i was trying to make the example Dynamic Content (500 Names, 2 Slides) infinitely loopable.
But it seems that the
absvalue is wrong when it's going in the negative range.For instance, when the slide is swapped to the left the
absglitches from -2 to -4.Here is my code:
https://codesandbox.io/p/devbox/compassionate-snow-d2q759?workspaceId=ws_MBzYrkk7MQx3BzWezLbpbP
For now i will use a huge number for the
initialindex, making it only works with positiveabs.