Skip to content

How to use animation fade-in / fade-out? #149

Closed Locked Answered by igordanchenko
szymonleyk asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for providing this example. Lightbox animation settings that you mentioned above control the fade-in / fade-out effect of the entire lightbox when the lightbox opens / closes, not when individual slides change.

This library was designed for touch-swipe / click-and-drag navigation, and the effect that you want to implement doesn't fit well in the current implementation. You can probably achieve the desired effect with some custom styling, but I can't guarantee the end result.

Please feel free to use the following sandbox as an inspiration.

https://codesandbox.io/p/sandbox/yet-another-react-lightbox-149-6ccmmz?file=%2Fsrc%2FApp.css

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@szymonleyk
Comment options

@igordanchenko
Comment options

Answer selected by igordanchenko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants