Merge pull request 'does it even matter?' (!286) from number-omit into main
All checks were successful
Release / Release (push) Successful in 1m2s
Release / Build Backend Image (push) Successful in 38s
Release / Build Frontend Image (push) Successful in 47s

Reviewed-on: #286
Reviewed-by: Jan K9f <jan@kjan.email>
This commit is contained in:
Phan Huy Tran 2025-06-04 10:35:09 +00:00
commit 4644e5cecc
No known key found for this signature in database
GPG key ID: 944223E4D46B7412

View file

@ -61,6 +61,9 @@ export class AnimatedNumberComponent implements OnChanges, AfterViewInit {
this.countUp = new CountUp(this.numberElement.nativeElement, this.value, {
startVal: this.previousValue,
duration: this.duration,
decimalPlaces: 2,
useEasing: true,
useGrouping: false,
easingFn: (t, b, c, d) => {
if (this.ease === 'power1.out') {
return c * (1 - Math.pow(1 - t / d, 1)) + b;