0.0.9 • Published 1 year ago

svelte-simple-counter v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

svelte-simple-counter

A simple animated numeric counter based on css @property

Usage

import { SimpleCounter } from 'svelte-simple-counter';

<SimpleCounter
	value={value}
	prefersCSS={prefersCSS}
	delay={delay}
	transitionDuration={duration}
	transitionTiming={timing}
	customDisplay={customDisplay}
/>;

Configuration options

NameTypeDescription
valuenumberRequired - displayed variable number
prefersCSSbooleanenables pure css version of the component (browser compatibility will be checked)- defaults to true
delaynumberanimation start delay in milliseconds - defaults to 100
transitionDurationnumberduration in milliseconds of the transition on number change - defaults to 1000
transitionTimingstringtransition css timing function - defaults to 'ease'
customDisplaycallbackenables custom display of the computed value (will disable css version) - defaults to null
0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago