スライド


var firstSlide = document.querySelector('.item:firest-child');
firstslide.classList.add('show');

function slide() {
	var currentSlide = 	document.querySelector('.show');
   
   if(currentSlide){
      currentSlide.classList.remove('show');
      var nextSlide = currentSlide.nextElementsibling;
      
      if(nextSlide){          
          nextSlide.classList.add("show");
         
       }else{
              firstSlide.classList.add('show');
       }

    }else{
    		firstSlide.classList.add('show');
    }
}
slide();
setInterval(slide,2000);