After successfully creating a background with 3 images using keyframes in my initial project built with html and css, I decided to recreate the project using NextJS.
However, I encountered an issue where the third image does not display in NextJS. Instead, I am met with a white screen while the first two images work perfectly fine.
I would greatly appreciate any assistance with this problem. Below is the code snippet for reference:
.mainheader {
height: 100vh;
position: relative;
color: #fff;
animation: animate ease-in-out 10s infinite;
background-size: cover;
}
@keyframes animate {
0%,
100% {
background-image: url(../assets/afbeeldingen/bg-3.jpg)
url(../assets/afbeeldingen/bg-1.jpg);
}
33% {
background-image: url(../assets/afbeeldingen/bg-1.jpg),
url(../assets/afbeeldingen/bg-2.jpg);
}
66% {
background-image: url(../assets/afbeeldingen/bg-2.jpg),
url(../assets/afbeeldingen/bg-3.jpg);
}
}