JSFiddle - React, Tailwind, and code Playground

by Khaleel Mughal

HTML

<div class="animationMax">
    <img />
</div>

JavaScript

$(function () {
    var i = 01;
    var interval = setInterval(function () {
        jQuery('.animationMax img').attr({
            src: 'http://jdsports.scene7.com/is/image/JDSports/127932jd' + i + '?hei=255&amp;wid=427&amp;resmode=sharp&amp;op_usm=1.1,0.5,0,0&amp;defaultImage=JDSports/sizeImageMissing'
        });
        i++;
        if (i === 28) i = 01; //38 images has been shown, stop the interval
    }, 100);
});