Привет, я сделал анимацию CSS поверх бутстрапа. Все в порядке, но сначала загруженные изображения не скрываются перед анимацией, а самое главное после того, как первый цикл анимационных изображений начинает удваиваться.CSS-анимация - изображения удвоены
У меня около 70 изображений для анимации, каждое изображение занимает 1 секунду за другим, они скользят по экрану. http://scr.hu/30bj/mxy1h
В html он определен как div с классом, конечно.
код CSS:
#skins{
\t height:80px;
\t /*overflow:hidden;*/
\t position:relative;
\t z-index:150;
}
#skins > div{
\t position:absolute;
\t -webkit-animation: sky 25s linear infinite;
\t -moz-animation: sky 25s linear infinite;
\t animation: sky 25s linear infinite;
}
#skins .user1{background:url(../images/skins/user1.png) no-repeat center;width:110px;height:200px;-webkit-animation-delay: 1s;-moz-animation-delay: 1s;animation-delay: 1s;top:10px;}
#skins .user2{background:url(../images/skins/user2.png) no-repeat center;width:110px;height:200px;-webkit-animation-delay: 2s;-moz-animation-delay: 2s;animation-delay: 2s;top:10px;}
#skins .user3{background:url(../images/skins/user3.png) no-repeat center;width:110px;height:200px;-webkit-animation-delay: 3s;-moz-animation-delay: 3s;animation-delay: 3s;top:10px;}
#skins .user4{background:url(../images/skins/user4.png) no-repeat center;width:110px;height:200px;-webkit-animation-delay: 4s;-moz-animation-delay: 4s;animation-delay: 4s;top:10px;}
#skins .user5{background:url(../images/skins/user5.png) no-repeat center;width:110px;height:200px;-webkit-animation-delay: 5s;-moz-animation-delay: 5s;animation-delay: 5s;top:10px;}
and more
@-webkit-keyframes sky {
\t 0%{
\t \t left:0%;
\t \t margin-left:-350px;
\t }
\t 100% {
\t \t left:100%;
\t \t margin-left:0px;
\t }
}
@keyframes sky {
\t 0%{
\t \t left:0%;
\t \t margin-left:-350px;
\t }
\t 100% {
\t \t left:100%;
\t \t margin-left:0px;
\t }
}
пожалуйста, укажите Ваш HTML, или еще лучше, http://jsfiddle.net/ – haxxxton
HTTP : //jsfiddle.net/auc3zs7k/ Я вижу, что в этом инструменте изображения более сжаты из-за времени анимации – sync667
будет ли количество скинов изменяться? – haxxxton