Reverse direction of lightbox animation

This commit is contained in:
Fedor Indutny
2023-03-09 11:29:00 -08:00
committed by GitHub
parent 4d7b5cd072
commit 8cb281c74e

View File

@@ -309,7 +309,7 @@ export function Lightbox({
thumbnailsAnimation.set({
marginLeft:
thumbnailsMarginLeft +
(selectedIndex === 0 ? -1 : 1) * THUMBNAIL_FULL_WIDTH,
(selectedIndex === 0 ? 1 : -1) * THUMBNAIL_FULL_WIDTH,
opacity: 0,
});
thumbnailsAnimation.start({