svelte-animated-counter Svelte Themes

Svelte Animated Counter

Counter component for svelte 5

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

Top categories

Loading Svelte Themes