Can I animate multiple objects to the same path but each object has a different starting point? I have these properties:
var path = anime.path('.path-slider__path__second');
var easings = ['linear'];
var motionPath = anime({
targets: '.path-slider__circle__bullet, .path-slider__circle__bullet__second',
translateX: path('x'),
translateY: path('y'),
rotate: path('angle'),
easing: function (el, i) {
return easings[i];
},
duration: 60000,
loop: true
});
I know two ways that can help you archive it
1st method: create multiple SVG paths and rotate them manually, especially path like circle is very easy to make
2nd method: combine
setTimeout
andopacity
to give a nice visual effectboth methods are in my codepen