JSFiddle - React, Tailwind, and code Playground

by TrueBlueAussie

HTML

<div id="result">I'm a div!</div>

JavaScript

var po = $({
    deg: 0
});

$elem = $('#result');

po.animate({
    deg: 360
}, {
    duration: 5000,
    step: function (now) {
        $elem.css({
            transform: 'rotate(' + now + 'deg)'
        });
    }
});