Hi,
I am building an image slider with only CSS and HTML. The slider has 3 images. The forward and back arrows are anchor links to the next image. I am following and adapting the example in this pen.
Here is a link to the pen with the relevant portion of my code.
The slider works, but when I click on the next or previous link, the page jumps and shows the image at the very top of the screen. This behavior does not seem to happen in the codepen example.
Is there a way to stop this from happening? Or is there a better way of achieving this?
Thanks!