Skip to content

Commit

Permalink
bump version, add test for onStartCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
inorganik committed Aug 25, 2023
1 parent e580fc2 commit 9f9b0b4
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ interface CountUpOptions {
scrollSpyDelay?: number; // delay (ms) after target comes into view
scrollSpyOnce?: boolean; // run only once
onCompleteCallback?: () => any; // gets called when animation completes
onStartCallback?: () => any; // gets called when animation start
onStartCallback?: () => any; // gets called when animation starts
plugin?: CountUpPlugin; // for alternate animations
}
```
Expand All @@ -90,12 +90,6 @@ Pass options:
const countUp = new CountUp('targetId', 5234, options);
```

with optional start callback:

```js
const countUp = new CountUp('targetId', 5234, { onStartCallback: someMethod });
```

with optional complete callback:

```js
Expand Down
2 changes: 1 addition & 1 deletion dist/countUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var CountUp = /** @class */ (function () {
var _this = this;
this.endVal = endVal;
this.options = options;
this.version = '2.7.1';
this.version = '2.8.0';
this.defaults = {
startVal: 0,
decimalPlaces: 0,
Expand Down
2 changes: 1 addition & 1 deletion dist/countUp.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9f9b0b4

Please sign in to comment.