Skip to content

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