JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.74.js"></script>
<!doctype html>
<html>
<head>
<title>JQuery Cycle Plugin - Example Slideshow</title>
</head>
<body>
    <div class="slideshow">
        <img class="5000" src="http://cloud.github.com/downloads/malsup/cycle/beach1.jpg" width="200" height="200" />
        <img class="10000" src="http://cloud.github.com/downloads/malsup/cycle/beach2.jpg" width="200" height="200" />
        <img class="15000" src="http://cloud.github.com/downloads/malsup/cycle/beach3.jpg" width="200" height="200" />
        <img class="20000" src="http://cloud.github.com/downloads/malsup/cycle/beach4.jpg" width="200" height="200" />
        <img class="25000" src="http://cloud.github.com/downloads/malsup/cycle/beach5.jpg" width="200" height="200" />
    </div>
</body>
</html>

CSS

.slideshow { height: 232px; width: 232px; margin: auto }
.slideshow img { padding: 15px; border: 1px solid #ccc; background-color: #eee; }

JavaScript

$('.slideshow').cycle({
        fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        delay: 5000,
        timeoutFn: function(currSlideElement, nextSlideElement, options, forwardFlag) 
        { 
         if (nextSlideElement.className ==null) 
          {
          return 0;
          } 
          else 
          {return parseInt(nextSlideElement.className);
          }
        }
    });