To achieve the desired effect, you may need to use some javascript. Visit aditagarwal.com for more information.
Styling with CSS:
.images-wrapper{
position: fixed;
left: 0;
top: 80px;
bottom: 0;
width: 100%;
height: 100vh;
animation: animate 16s ease-in-out infinite;// customize as needed
background-size: cover;
}
@keyframes animate{
0%,100%{
background-image: url(coding2.jpeg);
}
25%{
background-image: url(Flowers.png);
}
50%{
background-image: url(Desert.png);
}
75%{
background-image: url(sunset.png);
}
}
Adding HTML:
<div class="images-wrapper">
</div>