JSFiddle - React, Tailwind, and code Playground
JavaScript
var paper = Raphael(0,0, 1300,700);
var circle=paper.circle(200,200,1);
zoomIn();
var x=100,y=100;
function zoomIn(){
circle.animate({cx:x,cy:y,r:200},500,function(){
x=Math.random()*100+100;
y=Math.random()*100+100;
zoomOut();
})
}
function zoomOut(){
circle.animate({cx:x,cy:y,r:1},500,function(){
x=Math.random()*100+100;
y=Math.random()*100+100;
zoomIn();
})
}
circle.attr("fill", "#fF0");