inorganik/countUp.js — pull request #30 by ErtugKaya (2014-02-07 07:56:50+00:00)
Title: Add triggers

In case somebody will need triggers, here is what I do.

Example:

HTML
```

0

0
```

Javascript
```
function onTrigger(triggerValue) {
document.getElementById("status").innerHTML = triggerValue;
}

var numAnim = new countUp("myTargetElement", 0, 99.99, 2, 3.5);
numAnim.addTriggers([70, 90], onTrigger); //or numAnim.addTriggers(70, onTrigger);
numAnim.start();
```

JSFiddle http://jsfiddle.net/u87Xg/3/