Skip to content

Conversation

@ingmtz
Copy link

@ingmtz ingmtz commented Jun 7, 2024

Implement Infinite Scrolling for Slider-Lightbox

Summary:

This update introduces infinite scrolling functionality to the slider-lightbox component.

Changes:

  • If the "Previous" button is pressed while viewing the first image, the slider will now show the last image.
  • If the "Next" button is pressed while viewing the last image, the slider will now show the first image.
  • These behaviors are activated when the infinite variable is set to true.

Details:

  1. Previous Button Behavior:

    • When the first image is displayed and the "Previous" button is clicked, the slider will navigate to the last image.
  2. Next Button Behavior:

    • When the last image is displayed and the "Next" button is clicked, the slider will navigate to the first image.

Please review the changes and let me know if there are any questions or concerns.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant