I am having issues with the CSS slider that I created. It works fine on auto play, but when I try to manually navigate using the dots, the transition does not work smoothly. I believe it should take only 5 minutes to solve this issue for someone who is experienced in this area. Any help would be greatly appreciated!
If you have an alternative method to create a beautiful slider, please share your knowledge.
Below are the code snippets provided, please take a look and run them to see the error in the transition:
// Javascript code
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
// More JavaScript functions...
/* CSS Styles */
*{
margin: 0;
padding: 0;
}
.psr_slider{
position: absolute;
top: 0;
left: 0;
overflow: hidden;
}
/* More CSS Styles... */
<!DOCTYPE html>
<html lang="en">
<head>
<!-- HTML code goes here -->
</head>
<body>
<!-- Body content here -->
</body>
</html>