JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.slick/1.5.7/slick.css">
<script src="//cdn.jsdelivr.net/jquery.slick/1.5.7/slick.min.js"></script>
<a href="#openModal">Open Modal</a>
<div id="openModal" class="modalDialog">
<div id ="background">
<a href="#close" title="Close" class="close">X</a>
<div id="logo">
<img src="img/tile.jpg" alt="Smiley face" height="50" width="100">
</div>
<div class="multiple-items">
<br>
<br>
<br>
<br>
<div><img src="http://placehold.it/350x150" alt="Smiley face" height="140" width="100"></div>
<div><img src="http://placehold.it/350x150" alt="Smiley face" height="140" width="100"></div>
<div><img src="http://placehold.it/350x150" alt="Smiley face" height="140" width="100"></div>
<div><img src="http://placehold.it/350x150" alt="Smiley face" height="140" width="100"></div>
<div><img src="http://placehold.it/350x150" alt="Smiley face" height="140" width="100"></div>
<div><img src="http://placehold.it/350x150" alt="Smiley face" height="140" width="100"></div>
</div>
</div>
</div>
</body>
CSS
.modalDialog {
position: fixed;
font-family: Arial, Helvetica, sans-serif;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.8);
z-index: 99999;
opacity:0;
-webkit-transition: opacity 400ms ease-in;
-moz-transition: opacity 400ms ease-in;
transition: opacity 400ms ease-in;
pointer-events: none;
}
.modalDialog:target {
opacity:1;
pointer-events: auto;
}
.modalDialog > div {
width: 500px;
height: 400px;
position: relative;
margin: 10% auto;
padding: 5px 20px 13px 35px;
border-radius: none ;
background: #fff;
background: -moz-linear-gradient(#fff, #fff);
background: -webkit-linear-gradient(#fff, #fff);
background: -o-linear-gradient(#fff, #fff);
background-image: url("../img/sapbackground.png");
background-size: 100%;
background-repeat: no-repeat;
}
.close {
background: #606061;
color: #FFFFFF;
line-height: 25px;
position: absolute;
right: -12px;
text-align: center;
top: -10px;
width: 24px;
text-decoration: none;
font-weight: bold;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
-moz-box-shadow: 1px 1px 3px #000;
-webkit-box-shadow: 1px 1px 3px #000;
box-shadow: 1px 1px 3px #000;
}
.close:hover {
background: #00d9ff;
}
#logo {
height:5px;
width:10px;
margin-left: 10px;
margin-top: -2px;
}
.slick-slide {
box-shadow: none;
border-color:none;
color: none;
background: none;
outline:none;
}
JavaScript
$(document).ready(function(){
$('.multiple-items').slick({
infinite: false,
slidesToShow: 3,
slidesToScroll: 1,
});
});