JSFiddle - React, Tailwind, and code Playground
JavaScript
var paper = Raphael(0,0,600,600);
var rect1 = paper.rect(100,100,50,120).attr({fill: "blue"});
var anim = Raphael.animation({x: 210}, 1000).repeat(4);
rect1.animate(anim);
var paper = Raphael(0,0,600,600);
var rect1 = paper.rect(100,100,50,120).attr({fill: "blue"});
var anim = Raphael.animation({x: 210}, 1000).repeat(4);
rect1.animate(anim);