LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
CSS
/*** Images array ***/
/*** NO NEED TO EDIT BELOW!!! ***/
/*** Static Style ***/
.slideshow > div {
  position: absolute;
  bottom: 0;
  top: 0;
  right: 0;
  left: 0;
  -webkit-animation: 16s infinite alternate ease-in-out;
          animation: 16s infinite alternate ease-in-out;
}

.slideshow > div:nth-child(1) {
  background-image: url("http://www.picturesnew.com/media/images/images.jpg");
  -webkit-animation-name: fade-1;
          animation-name: fade-1;
}

@-webkit-keyframes fade-1 {
  0% {
    opacity: 1;
  }
  33.33333% {
    opacity: 0;
  }
  66.66667% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-1 {
  0% {
    opacity: 1;
  }
  33.33333% {
    opacity: 0;
  }
  66.66667% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.slideshow > div:nth-child(2) {
  background-image: url("http://www.hdwallpapersimages.com/wp-content/uploads/2014/01/Winter-Tiger-Wild-Cat-Images.jpg");
  -webkit-animation-name: fade-2;
          animation-name: fade-2;
}

@-webkit-keyframes fade-2 {
  0% {
    opacity: 0;
  }
  33.33333% {
    opacity: 1;
  }
  66.66667% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-2 {
  0% {
    opacity: 0;
  }
  33.33333% {
    opacity: 1;
  }
  66.66667% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.slideshow > div:nth-child(3) {
  background-image: url("http://harvestfunders.com/upload/orig/project_9258.jpeg");
  -webkit-animation-name: fade-3;
          animation-name: fade-3;
}

@-webkit-keyframes fade-3 {
  0% {
    opacity: 0;
  }
  33.33333% {
    opacity: 0;
  }
  66.66667% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-3 {
  0% {
    opacity: 0;
  }
  33.33333% {
    opacity: 0;
  }
  66.66667% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.slideshow > div:nth-child(4) {
  background-image: url("http://www.wallpapersdb.org/wallpapers/nature/blue_view_1920x1080.jpg");
  -webkit-animation-name: fade-4;
          animation-name: fade-4;
}

@-webkit-keyframes fade-4 {
  0% {
    opacity: 0;
  }
  33.33333% {
    opacity: 0;
  }
  66.66667% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-4 {
  0% {
    opacity: 0;
  }
  33.33333% {
    opacity: 0;
  }
  66.66667% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
Host Instantly Drag and Drop Website Builder

 

Description

Image background slideshow made of pure CSS 3. I used some of SASS script functions to auto generate the classes, so all you have to do is manipulate image urls in $images SASS variable and make sure you have the same number of DIV elements as images you specified
Term
Wed, 11/29/2017 - 11:19

Related Codes

Pen ID
Pen ID
Pen ID