Skip to content

Commit

Permalink
Merge pull request inorganik#166 from yesenarman/patch-1
Browse files Browse the repository at this point in the history
Add a missing 'decimals' argument in one of the examples
  • Loading branch information
inorganik authored May 6, 2017
2 parents e42f0b5 + 3d1f80e commit a0d01c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ numAnim.update(someValue);
For large numbers, since CountUp has a long way to go in just a few seconds, the animation seems to abruptly stop. The solution is to subtract 100 from your `endVal`, then use the callback to invoke the `update` method which completes the animation with the same duration with a difference of only 100 to animate:
```js
var endVal = 9645.72;
var numAnim = new CountUp("targetElem", 0, endVal - 100, duration/2);
var numAnim = new CountUp("targetElem", 0, endVal - 100, 2, duration/2);
numAnim.start(function() {
numAnim.update(endVal);
});
Expand Down

0 comments on commit a0d01c9

Please sign in to comment.