Then I would do something like this. Just check if the it's NOT the first or the last in the animation and only then run the animation.   I even have add a label (timeline.add(`label-${index}`)) to the timeline to easily snap to those points in the animation.    See the Pen qBxwazz?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen