I have a circle, with a boundary ring inside it (green & static), and some "pulsing" outer circles (blue). How would I approach this to only let the portions of the "pulsing circles" that are inside the static circle be visible?
I also included the JS that makes renders the HTML for your reference, but it does not generate the SVG in the JSFiddle.
I think that layers exist in SVG, but that isnt very helpful given how I structured the rendering of the other circles.
A quick review of the way it works.
- draw the background circle with the orange gradient, and place concentric has circles on it.
- draw the green static circle.
- place the four pulses at the cardinal points of the cartesian plane.
- animate the pulses.
I know that I can measure a click within the boundaries of the main circle, so I am hoping that I can limit the animation of the pulse (maybe a hacky way) to within the green circle ring.
Maybe other circle placed on top that has a reverse fill or something? just spitting out ideas, cause I have tried everything I know of and cant find any other examples or ideas researching.
Related articles that might help you help me think of a way to accomplish this: