<div id="swiper-06" class="swiper swiper-06">
  <div class="swiper-wrapper">
    <div class="swiper-slide">Slide 1</div>
    <div class="swiper-slide">Slide 2</div>
    <div class="swiper-slide">Slide 3</div>
    <div class="swiper-slide">Slide 4</div>
  </div>
  
  <!-- 追加コード -->
  <div class="swiper-scrollbar"></div>
  <!-- 追加コード -->
</div>
/* スワイパーで使うクラス */
.swiper-wrapper {
  width: 100%;
  height: 300px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.swiper-slide:nth-child(1) {
  background-color: #fb4949;
}

.swiper-slide:nth-child(2) {
  background-color: #34dc1a;
}

.swiper-slide:nth-child(3) {
  background-color: #4FC3F7;
}

.swiper-slide:nth-child(4) {
  background-color: #FFC107;
}

.swiper-06 .swiper-scrollbar {
  height: 8px;
  background-color: rgba(255, 255, 255, .7);
}

.swiper-06 .swiper-scrollbar-drag {
  background-color: #000;
}

.swiper-06 .swiper-horizontal > .swiper-scrollbar, .swiper-06 .swiper-scrollbar.swiper-scrollbar-horizontal {
  bottom: 8px;
}
const Swiper_06 = new Swiper('#swiper-06', {
  
  /* 追加コード */
  scrollbar: {
    el: '.swiper-scrollbar',
    hide: false,
    draggable: true
  }
  /* 追加コード */
  
});

External CSS

  1. https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css
  2. https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css

External JavaScript

  1. https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js