JSFiddle - React, Tailwind, and code Playground
HTML
<div id="slideshow">
<img src="http://ll-media.tmz.com/2009/12/01/1201_stallone_car_200_v2-1.jpg" class="show">
<img src="http://static.howstuffworks.com/gif/car-suspension-ch.jpg" class="next">
<img src="http://www.abcautotransportblog.com/wp-content/uploads/2010/11/move-car-across-country-200X200.jpg">
</div>
CSS
#slideshow IMG{
position:absolute;
}
.show{
z-index:2;
}
.next{
z-index:1;
}
JavaScript
$(document).ready(function(){
setInterval(change, 1500);
function change(){
$('#slideshow img').eq(0).removeClass('show');
}
});