I want to make a slide-show on hover. Here’s what I wrote
<a id="basic-java" class="project-tile" href="https://codepen.io/NadChel/full/qBJYPZZ" target="_blank">
<h3 class="project-name">Basic Java documentation</h3>
<div class="project-img"></div>
</a>
#basic-java .project-img {
background: url("https://i.ibb.co/cFLkngw/2023-05-11-01-55-42.png") top/cover no-repeat;
}
#basic-java .project-img:hover {
animation: 5s steps(3) infinite slide-show-basic-java;
}
@keyframes slide-show-basic-java {
33% {
background: url("https://i.ibb.co/DkKw6dQ/2023-05-11-01-57-22.png") top/cover no-repeat;
}
66% {
background: url("https://i.ibb.co/NSD1XCB/2023-05-11-01-59-34.png") top/cover no-repeat;
}
}
It kind of works, but I see weird transitions from one picture to the next. I don’t want picture one transition into picture two which then transforms into picture three. I want it simple: picture one, picture two, picture three. That’s it. steps()
work so well on Mozilla’s site. What was/were my mistake(s), and how do I achieve my goal?