ALONG means moving in a line or following the length, direction, or course of something. This involves following a path, edge, or boundary rather than crossing it.
To create "along" relationships on screen:
let pathPoints = [{x: 50, y: 150}, {x: 150, y: 100}, {x: 250, y: 200}, {x: 350, y: 150}];
let currentIndex = 0;
let progress = 0; // 0 to pathPoints.length - 1
let pointA = pathPoints[Math.floor(progress)];
let pointB = pathPoints[Math.ceil(progress)];
let t = progress - Math.floor(progress);
let x = lerp(pointA.x, pointB.x, t);
if (isMoving) { progress += speed; }