JSFiddle - React, Tailwind, and code Playground
HTML
<article id=slider>
<!-- Slider Setup -->
<input checked type=radio name=slider id=slide1 />
<input type=radio name=slider id=slide2 />
<input type=radio name=slider id=slide3 />
<input type=radio name=slider id=slide4 />
<!-- The Slider -->
<div id=slides>
<div id=overflow>
<div class=inner>
<article>
<div class=info><h3>Example 01</h3> by <a href="javascript:void(0);">Links 01</a></div>
<img src=http://farm3.staticflickr.com/2479/4056270827_5a65874b7c_o.jpg />
<br><br><br><br>br><br><br>
aaaaaaaa
<br><br><br><br>
</article>
<article>
<div class=info><h3>Example 02</h3> by <a href="javascript:void(0);">Links 02</a></div>
<img src=http://farm5.staticflickr.com/4110/4837129900_8152bd99d7_b.jpg />
</article>
<article>
<div class=info><h3>Example 03</h3> by <a href="javascript:void(0);">Links 03</a></div>
<img src=http://farm5.staticflickr.com/4113/5060979735_55e83ea1a7_b.jpg />
</article>
<article>
<div class=info><h3>Example 04</h3> by <a href="javascript:void(0);">Links 04</a></div>
<img src=http://farm5.staticflickr.com/4101/4866939291_14ef9839a4_b.jpg />
</article>
</div> <!-- .inner -->
</div> <!-- #overflow -->
</div> <!-- #slides -->
<div id=controls>
<label for=slide1></label>
<label for=slide2></label>
<label for=slide3></label>
<label for=slide4></label>
</div> <!-- #controls -->
...
CSS
/* NEW EXPERIMENT */
/* Slider Setup */
input {
display: none;
}
#slide1:checked ~ #slides .inner { margin-left:0; }
#slide2:checked ~ #slides .inner { margin-left:-100%; }
#slide3:checked ~ #slides .inner { margin-left:-200%; }
#slide4:checked ~ #slides .inner { margin-left:-300%; }
#slide5:checked ~ #slides .inner { margin-left:-400%; }
#overflow {
width: 100%;
overflow: hidden;
}
article img {
width: 100%;
}
#slides .inner {
width: 500%;
line-height: 0;
}
#slides article {
width: 20%;
float: left;
}
/* Slider Styling */
/* Control Setup */
#controls {
margin: -25% 0 0 0;
width: 100%;
height: 50px;
}
#controls label {
display: none;
width: 50px;
height: 50px;
opacity: 0.3;
}
#active {
margin: 23% 0 0;
text-align: center;
}
#active label {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
display: inline-block;
width: 10px;
height: 10px;
background: #bbb;
}
#active label:hover {
background: #ccc;
border-color: #777 !important;
}
#slide1:checked ~ #active label:nth-child(1),
#slide2:checked ~ #active label:nth-child(2),
#slide3:checked ~ #active label:nth-child(3),
#slide4:checked ~ #active label:nth-child(4),
#slide5:checked ~ #active label:nth-child(5) {
background: #333;
border-color: #333 !important;
}
/* Info Box */
.info {
line-height: 20px;
margin: 0 0 -150%;
position: absolute;
font-style: italic;
padding: 30px 30px;
opacity: 0;
color: #fff;
text-align: left;
}
.info a{color:yellow;}
.info h3 {
color: #fff;
margin: 0 0 5px;
font-weight: normal;
font-size: 22px;
font-style: normal;
}
/* Slider Styling */
#slides {
margin: 45px 0 0;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
box-shadow: 1px 1px 4px #666;
padding: 1%;
background: #eee;
}
/* Animation */
#slides .inner {
-webkit-transform:...