taisuke-j / progress-ring-component

Animated web component showing progress in percentage
MIT License
16 stars 2 forks source link

Add callback function that passes percentage #11

Closed taisuke-j closed 2 years ago

taisuke-j commented 3 years ago

Add a callback function that is called with every percentage change (e.g., 0.1% -> 0.2%)

taisuke-j commented 2 years ago

Since we cannot pass a callback function to a web component's prop like we can with React components (we can only pass string to web component props), this is difficult to implement. Combination with other animation libraries like this one (used internally for the component) is suggested.