Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: New function to change the current image #213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeanmatthieud
Copy link

Summary

I tried to add a function to change the current zoomed image (#60).
A lot of the code is duplicated from the open / close functions, and a lot of improvement could be made.
I didn't write the test, but I added a storybook file. I hope that this work can be improved by somebody else...

Result

Call the change({target}) function to display another image on the opened zoom.
It can be used to add next / previous buttons on a custom template.

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