Change the lightbox from Inline to Fullscreen on clicking the current slide #138
Answered
by
igordanchenko
laukaichung
asked this question in
Q&A
-
I want to turn an inline lightbox into a fullscreen lightbox when the user clicks on the current slide. The only way I find working is to conditionally remove the Inline plugin and inline style. Is there any better solution? Example: https://codesandbox.io/p/sandbox/yet-another-react-lightbox-examples-forked-hdv7t9
|
Beta Was this translation helpful? Give feedback.
Answered by
igordanchenko
Jun 10, 2023
Replies: 1 comment
-
Hi there! I'd use 2 separate Lightbox instances in this case. Does this look like the experience you want to implement? https://codesandbox.io/p/sandbox/yet-another-react-lightbox-136-jjmq8z?file=%2Fsrc%2FApp.tsx |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
laukaichung
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there!
I'd use 2 separate Lightbox instances in this case. Does this look like the experience you want to implement?
https://codesandbox.io/p/sandbox/yet-another-react-lightbox-136-jjmq8z?file=%2Fsrc%2FApp.tsx