Skip to content

Commit

Permalink
1.7.0 for merged improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
inorganik committed Apr 7, 2016
1 parent 7afbed5 commit e0afc48
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion countUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var CountUp = function(target, startVal, endVal, decimals, duration, options) {
this.duration = Number(duration) * 1000 || 2000;
var self = this;

this.version = function () { return '1.6.1'; };
this.version = function () { return '1.7.0'; };

// Print value to target
this.printValue = function(value) {
Expand Down
2 changes: 1 addition & 1 deletion dist/countUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ var CountUp = function(target, startVal, endVal, decimals, duration, options) {
this.duration = Number(duration) * 1000 || 2000;
var self = this;

this.version = function () { return '1.6.1'; };
this.version = function () { return '1.7.0'; };

// Print value to target
this.printValue = function(value) {
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.

6 changes: 2 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<section>
<h1>CountUp.js &nbsp;<small id="version" class="lt-gray"></small></h1>
<p>CountUp.js is a dependency-free, lightweight JavaScript "class" that can be used to quickly create animations that display numerical data in a more interesting way.</p>
<p>Install via npm by running <code class="indigo large">&nbsp;npm install countup.js&nbsp;</code> or</p>
<h3 class="marginTop marginBottom"><a class="lime weight700" href="https://github.com/inorganik/CountUp.js">Download on Github</a></h3>
</section>
<section>
Expand Down Expand Up @@ -110,13 +111,11 @@ <h4 class="inlineLeft noMargin weight300">Methods:</h4>
<form>
<h4 class="inlineLeft noMargin weight300">Custom easing:</h4>
<div class="inlineLeft marginLeft">
<select id="easingFnsDropdown">
<select id="easingFnsDropdown" class="marginRight">
<option value="easeOutExpo" selected>easeOutExpo (default, built-in)</option>
<option value="outQuintic">outQuintic</option>
<option value="outCubic">outCubic</option>
</select>
<br>
<br>
<input type="button" value="Apply easing" onClick="createCountUp()">
</div>
</form>
Expand Down Expand Up @@ -151,7 +150,6 @@ <h4 class="inlineLeft noMargin weight300">Custom easing:</h4>
options = {
useEasing : useEasing, // toggle easing
easingFn : easingFn, // defaults to easeOutExpo, but you can specify your own
formattingFn : formattingFn, // defaults to null (default formatter), but you can specify your own
useGrouping : useGrouping, // 1,000,000 vs 1000000
separator : ',', // character to use as a separator
decimal : '.', // character to use as a decimal
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "countup",
"name": "countup.js",
"description": "Animates a numerical value by counting to it",
"version": "1.6.1",
"version": "1.7.0",
"licenses": "MIT",
"main": "./dist/countUp.min.js",
"repository": {
Expand Down

0 comments on commit e0afc48

Please sign in to comment.