title: CSS animation-delay timing
body: <p>I took this example code from JSFiddle and played with it, but there is code confusing me</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.backgroundimg {
      -webkit-background-size: cover;
     -moz-background-size: cover;
     -o-background-size: cover;
     background-size: cover;
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
  
  }
  
  #back5 {
      background: url("http://duananhalotus.com/upload/album/0904234.jpg") no-repeat center fixed;
      z-index: -1;
  }
  
  #back4 {
      background: url("http://www.chinadaily.com.cn/world/images/attachement/jpg/site1/20120806/d4bed9d534551189e67329.jpg") no-repeat center fixed;
      z-index: -1;
  }
  
  #back3 {
      background: url("https://amazingslider.com/wp-content/uploads/2012/12/dandelion.jpg") no-repeat center fixed;
      z-index: -1;
  }
  
  #back2 {
      background: url("https://cdn.pixabay.com/photo/2013/04/06/11/50/image-editing-101040_960_720.jpg") no-repeat center fixed;
      z-index: -1;
  }
  
  #back1 {
      background: url("http://www.gettyimages.com/gi-resources/images/Embed/new/embed2.jpg") no-repeat center fixed;
      z-index: -1;
  }
  
  @keyframes backgroundchangeFadeInOut {
    0% {
      opacity:1;
    }
    17% {
      opacity:1;
    }
    25% {
      opacity:0;
    }
    92% {
      opacity:0;
    }
    100% {
      opacity:1;
    }
  }
  
  @-webkit-keyframes backgroundchangeFadeInOut {
    0% {
      opacity:1;
    }
    17% {
      opacity:1;
    }
    25% {
      opacity:0;
    }
    92% {
      opacity:0;
    }
    100% {
      opacity:1;
    }
  }
  
  #backgroundchange div:nth-of-type(1) {
    animation-delay: 8s;
    -webkit-animation-delay: 8s;
  }
  #backgroundchange div:nth-of-type(2) {
    animation-delay: 6s;
    -webkit-animation-delay: 6s;
  }
  #backgroundchange div:nth-of-type(3) {
    animation-delay: 4s;
    -webkit-animation-delay: 4s;
  }
  #backgroundchange div:nth-of-type(4) {
    animation-delay: 2s;
    -webkit-animation-delay: 2s;
  }
  
  #backgroundchange div:nth-of-type(5) {
    animation-delay: 0;
    -webkit-animation-delay: 0;
  }
  
  #backgroundchange div {
  animation-name: backgroundchangeFadeInOut;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 8s;
  
  -webkit-animation-name: backgroundchangeFadeInOut;
  -webkit-animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-duration: 8s;
  
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="inner"&gt;
                  &lt;div id="backgroundchange"&gt;
                      &lt;div class="backgroundimg" id="back1"&gt;&lt;/div&gt;
                      &lt;div class="backgroundimg" id="back2"&gt;&lt;/div&gt;
                      &lt;div class="backgroundimg" id="back3"&gt;&lt;/div&gt;
                      &lt;div class="backgroundimg" id="back4"&gt;&lt;/div&gt;
                      &lt;div class="backgroundimg" id="back5"&gt;&lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>It takes 2 seconds for each image to crossfade to the next, I tried changing it to 3 seconds by adding one second on each nth-of-type but didn't work. I need your help with this please!</p>