CSS3 background image is played in a loop.

The

code is as follows. I want to broadcast the five pictures in turn and then play them in a loop. How to achieve this? ask for help, boss. Thank you

.
<div class="prologue">
    <div class="prologue__end">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
</div>
.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;
}
Mar.11,2022

use swiper
swiper


without js, you can use transform: translateX (), to translate the width of a picture from time to time

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb1c00-2383.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb1c00-2383.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?