Skip to content

Commit 0bcb341

Browse files
committed
fix: merge duplicate CSS transition declarations in GridItem
- Combined duplicate transition properties into single declaration - Fixes issue where width/height transitions were overwritten - All four properties (width, height, transform, opacity) now animate correctly
1 parent fc6d209 commit 0bcb341

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/GridItem.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,7 @@
560560
.item-default {
561561
transition:
562562
width 0.2s,
563-
height 0.2s;
564-
transition:
563+
height 0.2s,
565564
transform 0.2s,
566565
opacity 0.2s;
567566
}

0 commit comments

Comments
 (0)