Skip to content

Commit 60c5514

Browse files
fix gallery item animation properties for improved clarity and performance
Signed-off-by: Shahm Najeeb <Shahm_Najeeb@outlook.com>
1 parent b5d6ff6 commit 60c5514

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

components/gallery/gallery-grid.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ export default function GalleryGrid({images, selected, onToggle}: Props) {
3535
key={img.path}
3636
className="gallery-item"
3737
style={{
38-
animationDelay: `${Math.min(index * 0.03, 0.6)}s`,
39-
animation: isVisible ? 'slideUp 0.4s ease-out both' : 'none'
38+
animationName: isVisible ? 'slideUp' : 'none',
39+
animationDuration: '0.4s',
40+
animationTimingFunction: 'ease-out',
41+
animationFillMode: 'both',
42+
animationDelay: `${Math.min(index * 0.03, 0.6)}s`
4043
}}
4144
>
4245
<GalleryItem

0 commit comments

Comments
 (0)