There are 2 images in the form of a circle, for example, in the png format. It is necessary to draw a circle on the web page so that the sector of the first image is visible (the angle of the sector is set, it can be changed), and the rest of the circle (the remaining sector) is from the second image.
How can this be implemented? How to animate? Animation, when we ask that the angle of the sector should change, for example, increase by 50 degrees and it gradually increases.
Important cross-browser compatibility.
@invincible, concretizing: example
It is necessary that the purple part (sector) could decrease, and the yellow one increase and vice versa.