JavaScript Photo Gallery by CodebaseMentor
This is an image gallery project with a modal feature. Your task is to fix these issues:
- Implement the functionality to display the clicked image in a modal
- Add modal navigation button functionality for moving between images
- Add functionality to close the modal when the close button is clicked and when clicking the modal background
- Disable the navigation buttons when the first or last image is displayed
You will learn and gain experience with:
- Adding event listeners in JavaScript
- Implementing modal functionality with HTML, CSS, and JavaScript
- Manipulating DOM elements and updating their properties
- Conditionally disabling buttons based on application state
- Fork this repo and clone it locally.
- Open index.html in your browser to see the current state of the project.
- Fix all the issues (hints are provided as TODO comments in the code)
- Once all your solutions are complete, create a single Pull Request to this repository
- Check if your solutions passes our automated tests. You need to create an account on CodebaseMentor (free of charge) to do this.
The best way to ask for help is to ask our Discord community.
Click here to join the CodebaseMentor Discord.
Browse our list of challenges and join our Discord to get notified when new challenges are released.