From 24e6b5fffea432290fc794c58bcde750713ecba9 Mon Sep 17 00:00:00 2001 From: Chuma McPhoy Date: Tue, 20 Aug 2024 11:58:01 +0200 Subject: [PATCH] chore(SW-96): cleanup css --- .../Lightbox/Desktop/desktopLightbox.module.css | 1 - components/Lightbox/Desktop/index.tsx | 11 +++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/components/Lightbox/Desktop/desktopLightbox.module.css b/components/Lightbox/Desktop/desktopLightbox.module.css index c5de574e4..47c91c216 100644 --- a/components/Lightbox/Desktop/desktopLightbox.module.css +++ b/components/Lightbox/Desktop/desktopLightbox.module.css @@ -3,7 +3,6 @@ position: fixed; top: 50%; left: 50%; - transform: translate(-50%, -50%); width: 1090px; height: 725px; overflow: hidden; diff --git a/components/Lightbox/Desktop/index.tsx b/components/Lightbox/Desktop/index.tsx index b8ced2630..a68e97c61 100644 --- a/components/Lightbox/Desktop/index.tsx +++ b/components/Lightbox/Desktop/index.tsx @@ -76,18 +76,17 @@ export function DesktopLightbox({ images, children }: DesktopLightboxProps) { initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} + transition={{ duration: 0.2 }} className={styles.overlay} /> - + {isFullView ? (