<p>
    background-image
</p>
<div class="main_imgBox">
      <div class="main_img" style="background-image: url(https://f.uploader.xzy.pw/eu-prd/upload/20191108160744_61514c415a.jpg)"></div>
      <div class="main_img" style="background-image: url(https://f.uploader.xzy.pw/eu-prd/upload/20191108160418_5165755153.jpg)"></div>
             <div class="main_img" style="background-image: url(https://f.uploader.xzy.pw/eu-prd/upload/20191108160539_6f73696931.jpg)"></div>
             <div class="main_img" style="background-image: url(https://f.uploader.xzy.pw/eu-prd/upload/20191108160447_6f6d664c4f.jpg)"></div> 
             <div class="main_img" style="background-image: url(https://f.uploader.xzy.pw/eu-prd/upload/20191108161055_374e67765a.jpg)"></div>
                 <div class="main_img" style="background-image: url(https://f.uploader.xzy.pw/eu-prd/upload/20191108161128_42466f414a.jpg)"></div>
</div>

<p>
    img
</p>
<div class="main_imgBox">
    <img src="https://f.uploader.xzy.pw/eu-prd/upload/20191108160744_61514c415a.jpg" alt="img" class="main_imgM">
     <img src="https://f.uploader.xzy.pw/eu-prd/upload/20191108160418_5165755153.jpg">
     <img src="https://f.uploader.xzy.pw/eu-prd/upload/20191108160539_6f73696931.jpg" alt="img" class="main_imgM">
     <img src="https://f.uploader.xzy.pw/eu-prd/upload/20191108160447_6f6d664c4f.jpg" alt="img" class="main_imgM">
     <img src="https://f.uploader.xzy.pw/eu-prd/upload/20191108161055_374e67765a.jpg" alt="img" class="main_imgM">
         <img src="https://f.uploader.xzy.pw/eu-prd/upload/20191108161128_42466f414a.jpg" alt="img" class="main_imgM">
 </div>

<p>
    ロゴなどを常時表示させる
</p>
<div class="main_imgBox">
  <img class="main_logo" src="https://www.esz.co.jp/common/img/basis/tit_logo.svg" alt="SOL">
      <div class="main_img" style="background-image: url(https://f.uploader.xzy.pw/eu-prd/upload/20191108160744_61514c415a.jpg)"></div>
      <div class="main_img" style="background-image: url(https://f.uploader.xzy.pw/eu-prd/upload/20191108160418_5165755153.jpg)"></div>
             <div class="main_img" style="background-image: url(https://f.uploader.xzy.pw/eu-prd/upload/20191108160539_6f73696931.jpg)"></div>
             <div class="main_img" style="background-image: url(https://f.uploader.xzy.pw/eu-prd/upload/20191108160447_6f6d664c4f.jpg)"></div> 
             <div class="main_img" style="background-image: url(https://f.uploader.xzy.pw/eu-prd/upload/20191108161055_374e67765a.jpg)"></div>
                 <div class="main_img" style="background-image: url(https://f.uploader.xzy.pw/eu-prd/upload/20191108161128_42466f414a.jpg)"></div>
</div>
  .main_imgBox {
    height: 680px;
    overflow: hidden;
    position: relative; }

  .main_logo {
    z-index:11;
    position: absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:50%;
    height:auto;
}

  .main_img {
    z-index:10;
    opacity: 0;
    width: 100%;
    height: 680px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-animation: anime 36s 0s infinite;
    animation: anime 36s 0s infinite; }

    .main_img:nth-of-type(2) {
      -webkit-animation-delay: 6s;
      animation-delay: 6s; }

    .main_img:nth-of-type(3) {
      -webkit-animation-delay: 12s;
      animation-delay: 12s; }

    .main_img:nth-of-type(4) {
      -webkit-animation-delay: 18s;
      animation-delay: 18s; }

    .main_img:nth-of-type(5) {
      -webkit-animation-delay: 24s;
      animation-delay: 24s; }

    .main_img:nth-of-type(6) {
      -webkit-animation-delay: 30s;
      animation-delay: 30s; }

  .main_imgM {
    opacity: 0;
    width:100%;
    height:100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-animation: anime 36s 0s infinite;
    animation: anime 36s 0s infinite; }

    .main_imgM:nth-of-type(2) {
      -webkit-animation-delay: 6s;
      animation-delay: 6s; }

    .main_imgM:nth-of-type(3) {
      -webkit-animation-delay: 12s;
      animation-delay: 12s; }

    .main_imgM:nth-of-type(4) {
      -webkit-animation-delay: 18s;
      animation-delay: 18s; }

    .main_imgM:nth-of-type(5) {
      -webkit-animation-delay: 24s;
      animation-delay: 24s; }

    .main_imgM:nth-of-type(6) {
      -webkit-animation-delay: 30s;
      animation-delay: 30s; }

@keyframes anime {
    0% {
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    17% {
        opacity: 1;
    }
    25% {
        opacity: 0;
         transform: scale(1.2);
                    z-index:9;
    }
    100% { opacity: 0 }
}

@-webkit-keyframes anime {
    0% {
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    17% {
        opacity: 1;
    }
    25% {
        opacity: 0;
         -webkit-transform: scale(1.2);
            z-index:9;
    }
    100% { opacity: 0 }
}





External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.