<div class="splide" aria-label="スライダーの矢印を消す">
  <div class="splide__track">
    <ul class="splide__list">
      <li class="splide__slide">
          <img src="https://pengi-n.co.jp/blog/wp-content/uploads/2024/01/splide-01.jpg" alt="">
        </li>
        <li class="splide__slide">
          <img src="https://pengi-n.co.jp/blog/wp-content/uploads/2024/01/splide-02.jpg" alt="">
        </li>
        <li class="splide__slide">
          <img src="https://pengi-n.co.jp/blog/wp-content/uploads/2024/01/splide-03.jpg" alt="">
        </li>
        <li class="splide__slide">
          <img src="https://pengi-n.co.jp/blog/wp-content/uploads/2024/01/splide-04.jpg" alt="">
        </li>
        <li class="splide__slide">
          <img src="https://pengi-n.co.jp/blog/wp-content/uploads/2024/01/splide-05.jpg" alt="">
        </li>
        <li class="splide__slide">
          <img src="https://pengi-n.co.jp/blog/wp-content/uploads/2024/01/splide-06.jpg" alt="">
        </li>
        <li class="splide__slide">
          <img src="https://pengi-n.co.jp/blog/wp-content/uploads/2024/01/splide-07.jpg" alt="">
        </li>
    </ul>
  </div>
  
<div class="splide__arrows">
      <button class="splide__arrow splide__arrow--prev button __prev"></button>
      <button class="splide__arrow splide__arrow--next button __next"></button>
    </div>
</div>
html, body {
  margin: 0;
  padding: 0;
}

.splide__slide img {
  width: 100%;
}

.button {
  display: block;
  position: absolute;
  width: 40px;
  height: 40px;
  padding: 4px 0 0 0;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  top: 50%;
  transition: 0.2s;
  z-index: 2;
}
.button::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 0;
  border-top: solid .5rem #f5b2b2;
  border-right: solid .5rem #f5b2b2;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.button:disabled:before {
  border-top: solid .5rem #a9a9a9;
  border-right: solid .5rem #a9a9a9;
}

.button.__previous {
  left: 0px;
}
.button.__prev::before {
  transform: rotate(-135deg);
}

.button.__next {
  right: 0px;
}
.button.__next::before {
  transform: rotate(45deg);
}
.button:not(:disabled):hover {
  opacity: 0.8;
}

.button:disabled {
  cursor: not-allowed;
}

/*  CODEPEN表示調整用  */
@media screen and (min-width: 600px) { 
.splide__track {
  height:300px;
}
}
const options = {
  cover: true,
  heightRatio: 0.5,
  
}
const splide = new Splide( '.splide',options );
splide.mount();

External CSS

  1. https://cdn.jsdelivr.net/npm/@splidejs/splide@4.0.7/dist/css/themes/splide-default.min.css

External JavaScript

  1. https://cdn.jsdelivr.net/npm/@splidejs/splide@4.0.7/dist/js/splide.min.js