jeudi 30 juin 2016

JavaScript - Image gallery - Slide left and right

I have a responsive image gallery that currently displays thumbnails on a page, which when clicked, will enlarge the image and open it up as a modal.

The limitations of this code are that when I have opened up the image, I have to press the 'X' button, and go back to the thumbnails in order to open up another image.

What I would like, is that when the modal opens up, with the enlarged image, there is a '<' and '>' button that allows you to scroll through the enlarged images.

Any ideas how this can be done?

I hope this was clear, if not then it will make more sense when you view it as a working example here.

Thank you for your help!

Aucun commentaire:

Enregistrer un commentaire