JSFiddle - React, Tailwind, and code Playground
HTML
<canvas id="demo" height="400" width="400" style="background:#000;" />
JavaScript
var canvas = document.getElementById('demo');
var context = canvas.getContext('2d');
var start = new Date();
var lines = 500,
cW = context.canvas.width,
cH = context.canvas.height;
var draw = function() {
var rotation = parseInt(((new Date() - start) / 1800) * lines) / lines;
context.save();
context.clearRect(0, 0, cW, cH);
context.translate(cW / 2, cH / 2);
context.rotate(Math.PI * 2 * rotation);
for (var i = 0; i < lines; i++) {
context.beginPath();
context.rotate(Math.PI * 2 / lines);
context.moveTo(cW / 20, 0);
context.lineTo(cW / 7, 0);
context.lineWidth = cW / 30;
context.strokeStyle = "rgba(255,255,255," + i / (lines*10) + ")";
context.stroke();
}
context.restore();
};
window.setInterval(draw, 1000 / 30);