JSFiddle - React, Tailwind, and code Playground

by mayuripatil185

HTML

<script src="https://raw.githubusercontent.com/DmitryBaranovskiy/raphael/master/raphael-min.js"></script>

JavaScript

// Creates canvas 320 Ă— 200 at 10, 50
var paper = Raphael(10, 50, 320, 500);

// Creates circle at x = 50, y = 40, with radius 10
var circle = paper.circle(150, 180, 100);
var circle2=paper.circle(150,180,50);
circle2.attr("fill","#00f");
// Sets the fill attribute of the circle to red (#f00)
circle.attr("fill", "#f00");

// Sets the stroke attribute of the circle to white
circle.attr("stroke", "#fff");
var anim = Raphael.animation({cx: 100, cy: 110}, 2e3);
circle.animate(anim); // run the given animation immediately
circle2.animate(anim.delay(500)); // run the given animation after 500 ms