V
V
Viktor Yanyshev2018-03-12 12:32:12
JavaScript
Viktor Yanyshev, 2018-03-12 12:32:12

How to synchronize the movement of elements on a canvas canvas?

There is a circle drawn in gray, along this circle the second circle moves with a gradient from one point to another, thereby filling the first circle. Also, a "point" moves along these circles, which, in a certain time, overcomes the entire circle, while the circle with the gradient is drawn.
https://jsfiddle.net/yanyshevvd/z5d9er3e/281/
1. How can "point" move in sync with a gradient circle?

big picture
screen.png

2. How to set the same start point for animation (movement of elements)?
big picture
screen.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2018-03-14
@villiwalla

https://jsfiddle.net/2195myfv/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question