JSFiddle - React, Tailwind, and code Playground
HTML
<img/>
JavaScript
$(function()
{
var i = 1;
var interval = setInterval(function()
{
$('img').attr({ src: 'http://www.gc-cdn.com/ui/m2m/' + i + '.png' });
i++;
if(i === 38)
clearInterval(interval); //38 images has been shown, stop the interval
}, 50); //50ms between each swap
});