JSFiddle - React, Tailwind, and code Playground

HTML

<div id="wrap">
<img src="http://elegantthemes.com/preview/InStyle/wp-content/uploads/2008/11/s-1.jpg" />
<img src="http://elegantthemes.com/preview/InStyle/wp-content/uploads/2008/11/s-5.jpg" />
<img src="http://elegantthemes.com/preview/InStyle/wp-content/uploads/2008/11/s-3.jpg" />
</div>

CSS

body, html{
    margin:0;
    padding:0;
    background:black;
}
img{
    position:absolute;
    top:0;
    display:none;
    width:100%;
    height:100%;
}

JavaScript

$('img').hide();

function anim() {
    $("#wrap img").first().appendTo('#wrap').fadeOut(500);
    $("#wrap img").first().fadeIn(500);    
    setTimeout(anim, 700);
}
anim();