html背景图片循环自动播放,CSS3 背景图循环播放

代码如下,我想让五张图片依次播完之后然后循环播放,这个怎么实现啊,求助大佬,谢谢啦

.prologue__end div:nth-child(1) {

background: url(../image/1.jpg) no-repeat center;

background-size: contain;

}

.prologue__end div:nth-child(2) {

background: url(../image/2.jpg) no-repeat center;

background-size: contain;

}

.prologue__end div:nth-child(3) {

background: url(../image/3.jpg) no-repeat center;

background-size: contain;

}

.prologue__end div:nth-child(4) {

background: url(../image/4.jpg) no-repeat center;

background-size: contain;

}

.prologue__end div:nth-child(5) {

background: url(../image/5.jpg) no-repeat center;

background-size: contain;

}

.prologue .prologue__end div:nth-child(1) {

animation: prologue__scale-box 2s ease 1.65s forwards;

-webkit-animation: prologue__scale-box 2s ease 1.65s forwards;

}

.prologue .prologue__end div:nth-child(2) {

animation: page__down-decoration 2s ease 3.8s forwards;

-webkit-animation: page__down-decoration 2s ease 3.8s forwards;

}

.prologue .prologue__end div:nth-child(3) {

animation: scale0-1 2s ease 6.8s forwards;

-webkit-animation:;

}

.prologue .prologue__end div:nth-child(4) {

animation: prologue__bloom-flower 2s ease 8.8s forwards;

-webkit-animation: prologue__bloom-flower 2s ease 8.8s forwards;

}

.prologue .prologue__end div:nth-child(5) {

animation: version-view__show-text-1 2s ease 10.8s forwards;

-webkit-animation: version-view__show-text-1 2s ease 10.8s forwards;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值