Вы можете создать карусель для поворота по изображениям.
Просто добавьте предыдущую и следующую кнопку, которая будет вращаться по изображениям.
(function($) {
$.fn.shiftChildrenRight = function(selector) {
return this.prepend(this.find(selector).last().detach());
};
$.fn.shiftChildrenLeft = function(selector) {
return this.append(this.find(selector).first().detach());
};
})(jQuery);
$('.btn-prev').on('click', function(e) { navigate(-1); });
$('.btn-next').on('click', function(e) { navigate(+1); });
function navigate(direction) {
switch (direction) {
case -1: $('.frames').shiftChildrenRight('.frame') ; break;
case 1: $('.frames').shiftChildrenLeft('.frame') ; break;
}
}
.carousel {
position: relative;
width: 600px;
border: thin solid grey;
background: #222;
}
.frames { text-align: center; }
.frame {
position: relative;
display: inline-block;
margin: 0 0.1em;
}
.caption {
position: absolute;
bottom: 0.5em;
text-align: center;
margin: 0 auto;
width: 100%;
background: rgba(0, 0, 0, 0.4);
color: rgba(255, 255, 255, 0.9);
padding: 0.333em 0;
}
.btn {
position: absolute;
z-index: 100;
height: 1.5em;
width: 1.5em;
top: calc(50% - 0.75em);
font-size: 3em;
background: rgba(0, 0, 0, 0.1);
border: 2px solid rgba(0, 0, 0, 0.2);
color: rgba(255, 255, 255, 0.4);
cursor: pointer;
}
.btn:focus { outline: none; }
.btn:hover {
background: rgba(0, 0, 0, 0.333);
border: 2px solid rgba(0, 0, 0, 0.5);
color: rgba(255, 255, 255, 0.8);
}
.btn-prev { left: 12.5%; }
.btn-next { right: 12.5%; }
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="carousel">
<div class="frames">
<div class="frame">
<img src="http://placekitten.com/200/160" />
<div class="caption">Img #1</div>
</div>
<div class="frame">
<img src="http://placekitten.com/160/160" />
<div class="caption">Img #2</div>
</div>
<div class="frame">
<img src="http://placekitten.com/180/160" />
<div class="caption">Img #3</div>
</div>
</div>
<button class="btn btn-prev">↺</button>
<button class="btn btn-next">↻</button>
</div>