Giter VIP home page Giter VIP logo

javascript-photo-gallery's People

Contributors

sbmsr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

javascript-photo-gallery's Issues

Issue 3 : Close the modal when the close button is clicked and when clicking the modal background.

What you need to do

Currently, our modal does not close when the close button is clicked or when the modal background is clicked. Implement this functionality so that users can easily close the modal when they're done viewing the images.

Expected behavior

When a user clicks the close button or the modal background, the modal should close and return to the gallery view:

issue3.mov

Hint

If you're stuck on the issue, here is a hint Try adding a click handler to the modal!

Issue 2 : Add modal navigation button functionality for moving between images.

What you need to do

Our modal currently lacks the functionality to navigate between images using the provided "previous" and "next" buttons. Implement this feature so that users can easily navigate between images within the modal.

Expected behavior

When a user clicks the "previous" or "next" button within the modal, the displayed image should change accordingly, allowing users to navigate through the gallery within the modal:

issue2.mov

Issue 4 : Disable the navigation buttons when the first or last image is displayed.

What you need to do

In the modal, the "previous" and "next" buttons should be disabled when the first or last image is displayed, respectively. Implement this functionality to enhance the user experience and prevent navigating beyond the image gallery's limits.

Expected behavior

When the first image is displayed, the "previous" button should be disabled. When the last image is displayed, the "next" button should be disabled:

issue4.mov

Issue 1 : Implement the functionality to display the clicked image in a modal

What you need to do

Our gallery should display a larger version of an image when it's clicked. However, this functionality is missing. Please implement the functionality to display the clicked image in a modal.

Expected behavior

When a user clicks on an image in the gallery, the clicked image should be displayed in a modal, like so:

issue1.mov

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.