<style type="text/css">
 /*=== 画像の表示エリア ================================= */
.slide {
  position   : relative;
  overflow   : hidden;
  text-align: center;
                    /* 画像のサイズに合わせて変更ください */
  width      : 400px;
  height     : 300px;
  margin     : auto;      /* サンプルは中央寄せの背景：白 */
  background : #fff;
}
 
 /*=== 画像の設定 ======================================= */
.slide img {
  display    : block;
  position   : absolute;
  
  left: 50%;
    transform: translateX(-50%);
  
                      /* 画像のサイズを表示エリアに合せる */
  width      : inherit;
  height     : inherit;
  opacity    : 0;
  animation  : slideAnime 30s ease infinite; /* 下記の30sに合わせる */
}
 
 /*=== スライドのアニメーションを段差で開始する ========= */
.slide img:nth-of-type(1) { animation-delay:  0s }
.slide img:nth-of-type(2) { animation-delay:  5s }
.slide img:nth-of-type(3) { animation-delay: 10s }
.slide img:nth-of-type(4) { animation-delay: 15s }
.slide img:nth-of-type(5) { animation-delay: 20s }
.slide img:nth-of-type(6) { animation-delay: 25s }
.slide img:nth-of-type(7) { animation-delay: 30s }
 
 /*=== スライドのアニメーション ========================= */
@keyframes slideAnime{
   0% { left: 100%  }
   1% { left: 0     }
  13% { left: 0     }
  14% { left: -100% }
 100% { left: -100% }
}
</style>

/* https://webparts.cman.jp/img/slideshow/  枚数を変える場合は参照した方が良い */

