Skip to content

Commit 625f894

Browse files
fix: card grid not showing cards
1 parent 13c2df4 commit 625f894

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/lib/components/card-grid/CardGrid.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
{:else}
5656
<div bind:this={cardGrid} class="card-grid">
5757
{#each items as _item, index (_item.id)}
58-
<div bind:this={cards[index]} class="card-wrapper">
58+
<div bind:this={cards[index]} class="card-wrapper" style:opacity={useAnimation && index >= previousCardsCount ? 0 : 1}>
5959
{@render item(_item)}
6060
</div>
6161
{/each}
@@ -90,7 +90,6 @@
9090
9191
.card-wrapper {
9292
width: 100%;
93-
opacity: 0;
9493
}
9594
9695
@media (max-width: 640px) {

0 commit comments

Comments
 (0)