Custom navigation buttons to navigate up and down #186
-
I was looking into how plausible it is to make custom nav buttons to navigate to picture above and below the current one. The rowContainerRef is on react-photo-album component which is above the Lightbox component, but due to verbosity I've removed it. Wondering what's the best way to approach this, if at all.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
The lightbox operates against an array of slides, so it's inherently one-dimensional by design. I do not see an elegant way to smoothly navigate to any other slide except the ones that immediately precede or follow the current slide. There is a way to animate a transition through multiple slides at a time - see |
Beta Was this translation helpful? Give feedback.
The lightbox operates against an array of slides, so it's inherently one-dimensional by design. I do not see an elegant way to smoothly navigate to any other slide except the ones that immediately precede or follow the current slide. There is a way to animate a transition through multiple slides at a time - see
prev({ count })
,next({ count })
controller ref methods here. But in this case slide animation would scroll through multiple slides instead of jumping to the desired slide immediately.