A simple animated counter component for Svelte 5.
npm install svelte-animated-counter
<Counter.Root>
{#snippet children(o)}
{#if o.type === 'item'}
<Counter.Item value={o.value} />
{:else}
<Counter.Separator />
{/if}
{/snippet}
</Counter.Root>
View demo here