Autor Zpráva
xxxadam577
Profil
Zdravím mám problém
html
¨<ul class="cb-slideshow">
            <li><span>Image 01</span><div><div class="down"><img src="./images/down.png" width="50"></div><h2>Lorem ipsum is simply dummy text<br> of the printing and typesetiing industry</h2><h4>Lorem Ipsum has <u>been the industry's</u> standard<br> dummy text ever since the 1500s, when</h4></div></li>
            <li><span>Image 02</span><div><div class="down"><img src="./images/down.png" width="50"></div><h2>Lorem ipsum is simply dummy text<br> of the printing and typesetiing industry</h2><h4>Lorem Ipsum has <u>been the industry's</u> standard<br> dummy text ever since the 1500s, when</h4></div></li>
            <li><span>Image 03</span><div></div></li>
        </ul>
a css
/*slideshow*/
.cb-slideshow,
.cb-slideshow:after { 
    position: relative;
    width: 100%;
    background: black;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 0; 
}
.cb-slideshow li span { 
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: none;
    opacity: 0;
    z-index: 0;
      -webkit-backface-visibility: hidden;
    -webkit-animation: imageAnimation 36s linear infinite 0s;
    -moz-animation: imageAnimation 36s linear infinite 0s;
    -o-animation: imageAnimation 36s linear infinite 0s;
    -ms-animation: imageAnimation 36s linear infinite 0s;
    animation: imageAnimation 36s linear infinite 0s; 
}
.cb-slideshow li div { 
    z-index: 1000;
    position: absolute;
    bottom: 30px;
    left: 0px;
    width: 100%;
    text-align: center;
    opacity: 0;
    color: #fff;
    -webkit-animation: titleAnimation 36s linear infinite 0s;
    -moz-animation: titleAnimation 36s linear infinite 0s;
    -o-animation: titleAnimation 36s linear infinite 0s;
    -ms-animation: titleAnimation 36s linear infinite 0s;
    animation: titleAnimation 36s linear infinite 0s; 
} 
.down{
      width: 100%;
      bottom: 0px;
     }
.cb-slideshow li div h4{
           height: 140px;
           font-weight: 100;
           font-family: 'Lato', sans-serif;
           color: white; 
           font-size: 1.7em;
          }
.cb-slideshow li div h2{
           height: 190px;
           font-family: 'Source Sans Pro', sans-serif;
            font-weight: 200;
           color: white;
           font-size: 4em;
          }
.cb-slideshow li:nth-child(1) span { 
    background-image: url(./images/slidebar1.png) 
}
.cb-slideshow li:nth-child(2) span { 
    background-image: url(./images/slidebar2.png);
    -webkit-animation-delay: 12s;
    -moz-animation-delay: 12s;
    -o-animation-delay: 12s;
    -ms-animation-delay: 12s;
    animation-delay: 12s; 
}
.cb-slideshow li:nth-child(3) span { 
    background-image: url(./images/slidebar3.png);
    -webkit-animation-delay: 24s;
    -moz-animation-delay: 24s;
    -o-animation-delay: 24s;
    -ms-animation-delay: 24s;
    animation-delay: 24s; 
}

.cb-slideshow li:nth-child(2) div { 
    background-image: url(./images/slidebar2.png);
    -webkit-animation-delay: 12s;
    -moz-animation-delay: 12s;
    -o-animation-delay: 12s;
    -ms-animation-delay: 12s;
    animation-delay: 12s; 
}
.cb-slideshow li:nth-child(3) div { 
    -webkit-animation-delay: 24s;
    -moz-animation-delay: 24s;
    -o-animation-delay: 24s;
    -ms-animation-delay: 24s;
    animation-delay: 24s; 
    background-image: url(./images/slidebar3.png);
}
/* Animation for the slideshow images */
@-webkit-keyframes imageAnimation { 
    0% { opacity: 0;
    -moz-animation-timing-function: ease-in; }
    4% { opacity: 1;
         -moz-animation-timing-function: ease-out; }
    33% { opacity: 1 }
    36% { opacity: 0 }
    100% { opacity: 0 }
}
@-moz-keyframes imageAnimation { 
   0% { opacity: 0;
    -moz-animation-timing-function: ease-in; }
    4% { opacity: 1;
         -moz-animation-timing-function: ease-out; }
    33% { opacity: 1 }
    36% { opacity: 0 }
    100% { opacity: 0 }
}
@-o-keyframes imageAnimation { 
    0% { opacity: 0;
    -moz-animation-timing-function: ease-in; }
    4% { opacity: 1;
         -moz-animation-timing-function: ease-out; }
    33% { opacity: 1 }
    36% { opacity: 0 }
    100% { opacity: 0 }
}
@-ms-keyframes imageAnimation { 
   0% { opacity: 0;
    -moz-animation-timing-function: ease-in; }
   4% { opacity: 1;
         -moz-animation-timing-function: ease-out; }
    33% { opacity: 1 }
    36% { opacity: 0 }
    100% { opacity: 0 }
}
@keyframes imageAnimation { 
  0% { opacity: 0;
    -moz-animation-timing-function: ease-in; }
    2% { opacity: 1;
         -moz-animation-timing-function: ease-out; }
    33% { opacity: 1 }
    36% { opacity: 0 }
    100% { opacity: 0 }
}
/* Animation for the title */
@-webkit-keyframes titleAnimation { 
    0% { opacity: 0 }
    8% { opacity: 1 }
    29% { opacity: 1 }
    33% { opacity: 0 }
    100% { opacity: 0 }
}
@-moz-keyframes titleAnimation { 
     0% { opacity: 0 }
    8% { opacity: 1 }
    29% { opacity: 1 }
    33% { opacity: 0 }
    100% { opacity: 0 }
}
@-o-keyframes titleAnimation { 
    0% { opacity: 0 }
    8% { opacity: 1 }
    29% { opacity: 1 }
    33% { opacity: 0 }
    100% { opacity: 0 }
}
@-ms-keyframes titleAnimation { 
    0% { opacity: 0 }
    8% { opacity: 1 }
    29% { opacity: 1 }
    33% { opacity: 0 }
    100% { opacity: 0 }
}
@keyframes titleAnimation { 
     0% { opacity: 0 }
    8% { opacity: 1 }
    29% { opacity: 1 }
    33% { opacity: 0 }
    100% { opacity: 0 }
}
/* Show at least something when animations not supported */
.no-cssanimations .cb-slideshow li span{
    opacity: 1;
}
Na prvním slideru je vše v pořádku, ale na druhém a na třetím se pozadí úplně rozhodí. Děkuju za pomoc :)
Bubák
Profil
xxxadam577:
Na prvním slideru je vše v pořádku, ale na druhém a na třetím se pozadí úplně rozhodí.
Nevidím pro to důvod, ale je možné, že jsem něco přehlédnul. Místo kilometru kódu, tedy bez obrázků pozadí, prosím o odkaz na živou ukázku.

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0