Using input element:
target.style.animation = "anim 100s";
timeline = new ScrollTimeline(scrubber, "horizontal");


Using Scroll snap pointer:
target.style.animation = "rotate 1000ms"
timeline = new ScrollTimeline(scrollSnap, "horizontal");
0ms
100ms
200ms
300ms
400ms
500ms
600ms
700ms
800ms
900ms
1000ms


Using input element and animation have several iterations:
target.style.animation = "anim 1s linear 0s 3";
timeline = new ScrollTimeline(iterationScrubber, "horizontal");


Using input element and animation have infinity iterations:
target.style.animation = "anim 1s linear 0s Infinite";
let timeline = new ScrollTimeline(infinityScrubber, "horizontal", 2000);