0
我有以下代碼:使用-webkit-animation-play-state暫停CSS幻燈片:已暫停;不工作
.picTransition .item {
position: absolute;
left: 0;
right: 0;
opacity: 0;
-webkit-animation: picTransition 56s linear infinite;
-moz-animation: picTransition 56s linear infinite;
-ms-animation: picTransition 56s linear infinite;
animation: picTransition 56s linear infinite;
}
.picTransition.paused{
-webkit-animation-play-state:paused;
-moz-animation-play-state:paused;
-o-animation-play-state:paused;
animation-play-state:paused;
}
.picTransition .item:nth-child(2) {
-webkit-animation-delay: 14s;
-moz-animation-delay: 14s;
-ms-animation-delay: 14s;
animation-delay: 14s;
}
.picTransition .item:nth-child(3) {
-webkit-animation-delay: 28s;
-moz-animation-delay: 28s;
-ms-animation-delay: 28s;
animation-delay: 28s;
}
.picTransition .item:nth-child(4) {
-webkit-animation-delay: 42s;
-moz-animation-delay: 42s;
-ms-animation-delay: 42s;
animation-delay: 42s;
}
我作出的一個錯誤如何暫停幻燈片。我使用了動畫播放狀態:已暫停,但不起作用。我可以使用jquery函數,但我真的很想嘗試讓它在css中工作。我是否搞砸了父母的孩子關係?或者這個時序不被支持或者暫停問題搞亂了?也許我需要做一個懸停類型暫停併爲此創建一個新的div?我知道我犯了一個簡單的錯誤。