{#each actions as action, index} {@const position = getButtonPosition(index, actions.length)} {@const openDelay = index * 35} {@const closeDelay = (actions.length - 1 - index) * 25} {/each}