it could be fixed by adding a check at line 50 in order not to go beyond the last item in the scroll section ` if (index !== items.length - 1) { // Ensure we don't go out of bounds direction == "horizontal" ? timeline.to( items[index + 1], { xPercent: 0, }, "<" ) : timeline.to( items[index + 1], { yPercent: 0, }, "<" ); }`