JSFiddle - React, Tailwind, and code Playground

by Laurent Dufour

HTML

<div>
<br><br><br><br><br><br><br><br><br><br>
</div>
<div class="slider">
  <div class="photos">
    <img src="https://i.imgur.com/w9HPeyP.jpeg" alt="" 
        height="512" width="384">
    <img src="https://i.imgur.com/brHBSF7.jpeg" alt="" 
        height="512" width="384">
    <img src="https://i.imgur.com/l5rPYT4.jpeg" alt="" 
        height="512" width="384">
      <img src="https://i.imgur.com/w9HPeyP.jpeg" alt="" 
        height="512" width="384">
    <img src="https://i.imgur.com/brHBSF7.jpeg" alt="" 
        height="512" width="384">
    <img src="https://i.imgur.com/l5rPYT4.jpeg" alt="" 
        height="512" width="384">
    <img src="https://i.imgur.com/w9HPeyP.jpeg" alt="" 
        height="512" width="384">
    <img src="https://i.imgur.com/brHBSF7.jpeg" alt="" 
        height="512" width="384">
  </div>
	<p>&#x2794;</p>
</div>
<div>
<br><br><br><br><br><br><br><br><br><br>
</div>

CSS

.photos {
		position: relative;
		width: 100%;
		height: 90%;
		overflow-x: scroll;
		overflow-y: hidden;
		white-space: nowrap;
		}
	.photos img { 
		height: 90vh; 
		width: auto; 
		z-index: 0; 
		}
  .slider {
    position: relative
  }
	.slider p { 
		position: absolute; 
		right: 10px;
		bottom: 40%;
		z-index: 1;
		font-size: 2.5em;
    color: white;
		text-shadow: 2px 2px 2px #000;
		}