I want to do this same thing but in React without using jQuery I tried but I am not able to do this . whenever I click on the button to expand the box it refreshes and moves to the beginning (the first item). any solution
currently I am using {xPercent : -100} it is working but it scrolls a extra....
and also in your code you have this on line 40 in timelineScroll variable
x: () => innerWidth
from where this innerWidth is coming from ????