Skip to content

Commit 9f9b0b4

Browse files
committed
bump version, add test for onStartCallback
1 parent e580fc2 commit 9f9b0b4

7 files changed

+18
-14
lines changed

README.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ interface CountUpOptions {
6969
scrollSpyDelay?: number; // delay (ms) after target comes into view
7070
scrollSpyOnce?: boolean; // run only once
7171
onCompleteCallback?: () => any; // gets called when animation completes
72-
onStartCallback?: () => any; // gets called when animation start
72+
onStartCallback?: () => any; // gets called when animation starts
7373
plugin?: CountUpPlugin; // for alternate animations
7474
}
7575
```
@@ -90,12 +90,6 @@ Pass options:
9090
const countUp = new CountUp('targetId', 5234, options);
9191
```
9292

93-
with optional start callback:
94-
95-
```js
96-
const countUp = new CountUp('targetId', 5234, { onStartCallback: someMethod });
97-
```
98-
9993
with optional complete callback:
10094

10195
```js

dist/countUp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var CountUp = /** @class */ (function () {
1515
var _this = this;
1616
this.endVal = endVal;
1717
this.options = options;
18-
this.version = '2.7.1';
18+
this.version = '2.8.0';
1919
this.defaults = {
2020
startVal: 0,
2121
decimalPlaces: 0,

dist/countUp.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)