I'm quite new to HTML and CSS where I'm building a basic business website for personal project. I have added a few photos for a slideshow to show on my header/index home page of the website. What I have got working is that it is switching between pictures but not transitioning smoothly. I have attached my a snippet of my CSS below. Thanks in advance.
.header{
height: 100vh;
width: 100%;
background-color: #fff;
background-position: center;
background-size: cover;
animation: header 10s ease-in-out infinite;
position: relative;
}
@keyframes header{
0%,100%{
background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/banner.png);
}
25% {
background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/img2.jpg);
}
50% {
background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/img3.jpg);
}
75% {
background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/img4.jpg);
}
100% {
background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/img5.jpg);
}
}