JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://tympanus.net/Tutorials/SlideshowJmpress/js/jquery.jmslideshow.js"></script>
<script src="http://tympanus.net/Tutorials/SlideshowJmpress/js/jmpress.min.js"></script>
<section id="jms-slideshow" class="jms-slideshow">
<div class="step" data-color="color-1">
<div class="jms-content">
<h3>Just when I thought...</h3>
<p>From fairest creatures we desire increase, that thereby beauty's rose might never die</p> <a class="jms-link" href="#">Read more</a>
</div>
<img src="http://tympanus.net/Tutorials/SlideshowJmpress/images/1.png" />
</div>
<div class="step" data-color="color-2" data-y="500" data-scale="0.4" data-rotate-x="30">
<div class="jms-content">
<h3>Holy cannoli!</h3>
<p>But as the riper should by time decease, his tender heir might bear his memory</p> <a class="jms-link" href="#">Read more</a>
</div>
<img src="http://tympanus.net/Tutorials/SlideshowJmpress/images/2.png" />
</div>
<div class="step" data-color="color-3" data-x="2000" data-z="3000" data-rotate="170">
<div class="jms-content">
<h3>No time to waste</h3>
<p>Within thine own bud buriest thy content and, tender churl, makest waste in niggarding</p> <a class="jms-link" href="#">Read more</a>
</div>
<img src="http://tympanus.net/Tutorials/SlideshowJmpress/images/3.png" />
</div>
<div class="step" data-color="color-4" data-x="3000">
<div class="jms-content">
<h3>Supercool!</h3>
<p>Making a famine where abundance lies, thyself thy foe, to thy sweet self too cruel</p> <a class="jms-link" href="#">Read more</a>
</div>
<img src="http://tympanus.net/Tutorials/SlideshowJmpress/images/4.png" />
</div>
<div class="step" data-color="color-5" data-x="4500" data-z="1000" data-rotate-y="45">
<div class="jms-content">
<h3>Did you know...
CSS
.jms-slideshow {
position: relative;
width: 80%;
max-width: 1400px;
min-width: 640px;
margin: 20px auto;
height: 460px;
}
.jms-wrapper {
width: auto;
min-width: 600px;
height: 440px;
background-color: #fff;
box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
-webkit-background-clip: padding;
-moz-background-clip: padding;
background-clip: padding-box;
border: 10px solid #fff;
border: 10px solid rgba(255, 255, 255, 0.9);
outline: none;
-webkit-transition: background-color 1s linear;
-moz-transition: background-color 1s linear;
-o-transition: background-color 1s linear;
-ms-transition: background-color 1s linear;
transition: background-color 1s linear;
}
.color-1 {
background-color: #E3D8FF;
background-color: rgba(227, 216, 268, 1);
}
.color-2 {
background-color: #EBBBBC;
background-color: rgba(235, 187, 188, 1);
}
.color-3 {
background-color: #EED9C0;
background-color: rgba(238, 217, 192, 1);
}
.color-4 {
background-color: #DFEBB1;
background-color: rgba(223, 235, 177, 1);
}
.color-5 {
background-color: #C1E6E5;
background-color: rgba(193, 230, 229, 1);
}
.step {
width: 900px;
height: 420px;
display: block;
-webkit-transition: opacity 1s;
-moz-transition: opacity 1s;
-ms-transition: opacity 1s;
-o-transition: opacity 1s;
transition: opacity 1s;
}
.step:not(.active) {
opacity: 0;
filter: alpha(opacity=0);
/* internet explorer */
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=0)";
/*IE8*/
}
.jms-content {
margin: 0px 370px 0px 20px;
position: relative;
clear: both;
}
.step h3 {
color: #fff;
font-size: 52px;
font-weight: bold;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
margin: 0;
padding: 60px 0 10px 0;
}
.step p {
color: #fff;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
font-size: 34px;
font-weight: normal;
position: relative;
...
JavaScript
$(function () {
$('#jms-slideshow').jmslideshow();
});