Hi, guys!
First of all: thank you for your products! It's awesome!
What is the right way to deal with my idea:
I have a VUE project with some components (10-100); parent component is an SVG and child components are circles;
<circle :id="name" :fill=color :stroke=stroke stroke-width=3 r=5 :cx="x" :cy="y">
every 1 second each circle get new random coordinates: [ {x: 0, y: 0}, {x: 1, y: -1}, {x: -2, y: 25}, ... ] (usually [].length === 10) and I want to animate it along the path, but the path of a circle should appear after it, like a tail.
1) How can I do that?
2) Now I animate every circle like that:
newData.forEach(elem => {
TweenMax.to(this.$data, 2, { x: elem.x, y: elem.y });
});
But, it moving with breaks: at the beginning of motion there is one speed and at the and it slowing down: end of coordinates array is reached and the circle wait new coordinates. Increasing the time of animation did not help.
Any ideas?