{#each cards as cardInfo, i} {@const rotation = getCardRotation(i, cards.length, rotationDeg)} {@const position = getCardOffset(rotation)} {/each}