the trick is actually very easy. create different animation states for a specific element. make sure the number of points is the same for all. The more frames you have, the smoother the animation will be (at least in my case). then morph between the path d values using motion lib