<div class="swiper-block">

  <div class="container">
    <!-- Swiper -->
    <div class="swiper-container">
      <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 class="swiper-slide">Slide 5</div>
        <div class="swiper-slide">Slide 6</div>
        <div class="swiper-slide">Slide 7</div>
        <div class="swiper-slide">Slide 8</div>
        <div class="swiper-slide">Slide 9</div>
        <div class="swiper-slide">Slide 10</div>
      </div>
      <!-- Add Pagination -->
      <div class="swiper-pagination"></div>
    </div>
  </div>

</div>
* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  margin: 0;
  color: #fff;
}

.container {
  width: 75%;
  margin: 0 auto;
  background-color: #f005;
}

.swiper-block {
  margin-top: 10px;
  overflow: hidden;
}

.swiper-container {
  width: calc(50% + 50vw);
  height: 200px;
}

.swiper-slide {
  background: #4caf50;
  padding: 10px;
  border-radius: 20px;
  text-align: center;
  opacity: 0.8;
}

.swiper-slide:nth-child(even) {
  background: #673ab7;
}

.swiper-pagination {
  width: calc((100% - 50vw) * 2) !important;
}
const swiper = new Swiper(".swiper-container", {
  slidesPerView: 2.5,
  spaceBetween: 20,
  pagination: {
    el: ".swiper-pagination",
    clickable: true,
  }
});

External CSS

  1. https://unpkg.com/swiper/swiper-bundle.min.css

External JavaScript

  1. https://unpkg.com/swiper/swiper-bundle.min.js