import{Tween}from'es6-tween';import'es6-tween-plugin-draw';lettween=newTween(document.querySelector('#myCircleSVG'),{/* any yours */}).to({alongPath:'#myPathShape'},2000).start();// moves #myCircleSVG along #myPathShape
or
import{Tween}from'es6-tween';import'es6-tween-plugin-draw';lettween=newTween(document.querySelector('#myPathShape'),{/* any yours */}).to({motionPath:'#myCircleSVG'},2000).start();// moves #myCircleSVG along #myPathShape