From 341b8f5207c4c996b110598ff34f99ef9870233c Mon Sep 17 00:00:00 2001 From: Christiaan Scheermeijer Date: Wed, 23 Jun 2021 16:33:43 +0200 Subject: [PATCH] feat(project): prevent fade when sliding --- src/components/TileDock/TileDock.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/TileDock/TileDock.tsx b/src/components/TileDock/TileDock.tsx index 49b6956a6..04d22c26d 100644 --- a/src/components/TileDock/TileDock.tsx +++ b/src/components/TileDock/TileDock.tsx @@ -199,8 +199,7 @@ const TileDock = ({ paddingLeft: spacing / 2, paddingRight: spacing / 2, boxSizing: 'border-box', - // opacity: isInView ? 1 : 0.3, - transition: 'opacity .2s ease-in 0s', + transition: !isInView ? 'opacity .2s ease-in 0s' : '', }} > {renderTile(tile.item, isInView)}