JSFiddle - React, Tailwind, and code Playground
HTML
<div id="wrapper">
<div id="scroller">
<img src="http://placekitten.com/200/100" width="200" height="100" />
<img src="http://placekitten.com/200/200" width="200" height="200" />
<img src="http://placekitten.com/200/150" width="200" height="150" />
<img src="http://placekitten.com/200/250" width="200" height="250" />
</div>
</div>
CSS
#wrapper {
width: 220px;
height: 200px;
overflow: auto;
border: 1px solid #ff0000;
}
JavaScript
$(document).ready(function(){
$("#scroller").draggable({
axis:"y",
});
});