Skip to content

calvo-jp/svelte-animated-counter

Repository files navigation

Svelte Animated Counter

A simple animated counter component for Svelte 5.

Installation

npm install svelte-animated-counter

Usage

<Counter.Root>
  {#snippet children(o)}
    {#if o.type === 'item'}
      <Counter.Item value={o.value} />
    {:else}
      <Counter.Separator />
    {/if}
  {/snippet}
</Counter.Root>

View demo here