JSFiddle - React, Tailwind, and code Playground

HTML

<div class="icon-repeat">abc</div>

CSS

.icon-repeat {
    background:red;
    width:30px;
    height:30px;
    border-radius:20px;
    text-align:center;
    line-height:30px;
}

JavaScript

function AnimateRotate(angle) {
    var $elem = $('.icon-repeat');
    setInterval(function () {
        $({
            deg: 0
        }).animate({
            deg: angle
        }, {
            duration: 1000,
            step: function (now) {
                $elem.css({
                    transform: 'rotate(' + now + 'deg)'
                });
            }
        });
    }, 1000);
}

AnimateRotate(359);