Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "tina", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Tweening and INterpolations for Animation", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
{ | ||
"name": "tina", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Tweening and INterpolations for Animation", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -12,5 +12,5 @@ # TINA | ||
* **Easy to debug** (Proper warnings) | ||
* **High performance** (Competitive with Tweenjs) | ||
* **High flexibility** (tween parameters can easily be modified after creation and even when they are running) | ||
* **High customizability** (possibility to use custom easing and interpolation functions and playable components) | ||
* **High performance** (Competitive with Tweenjs, benchmark coming soon) | ||
* **High flexibility** (tween transitions can easily be modified after creation) | ||
* **High customizability** (possibility to use custom easings, interpolations and components) | ||
* **Running options** (delay, iterations, pingpong, persist and speed) | ||
@@ -17,0 +17,0 @@ * **Open source** and MIT License (use it as you please) |
@@ -58,3 +58,3 @@ /** | ||
if (t === 1) return 1; | ||
e = 1 - 1 / (e + 1); // inversing e for user friendlyness | ||
e /= (e + 1); // transforming e | ||
var n = (1 + e) * Math.log(1 - t) / Math.log(e); | ||
@@ -135,3 +135,3 @@ return Math.cos(n - PI_OVER_TWO) * Math.pow(e, n); | ||
if (t === 0) { return 0; } | ||
e /= (e + 1); // transforming e for user friendlyness | ||
e /= (e + 1); // transforming e | ||
var n = (1 + e) * Math.log(t) / Math.log(e); | ||
@@ -143,3 +143,3 @@ return Math.cos(n) * Math.pow(e, n); | ||
if (t === 1) { return 1; } | ||
e /= (e + 1); // transforming e for user friendlyness | ||
e /= (e + 1); // transforming e | ||
var n = (1 + e) * Math.log(1 - t) / Math.log(e); | ||
@@ -153,3 +153,3 @@ return 1.0 - Math.cos(n) * Math.pow(e, n); | ||
if (t === 0) { return 0; } | ||
e /= (e + 1); // transforming e for user friendlyness | ||
e /= (e + 1); // transforming e | ||
n = (1 + e) * Math.log(2 * t) / Math.log(e); | ||
@@ -160,3 +160,3 @@ return 0.5 * Math.cos(n) * Math.pow(e, n); | ||
if (t === 1) { return 1; } | ||
e /= (e + 1); // transforming e for user friendlyness | ||
e /= (e + 1); // transforming e | ||
n = (1 + e) * Math.log(2 - 2 * t) / Math.log(e); | ||
@@ -169,3 +169,3 @@ return 0.5 + 0.5 * (1.0 - Math.cos(n) * Math.pow(e, n)); | ||
if (t === 0) { return 0; } | ||
e /= (e + 1); // transforming e for user friendlyness | ||
e /= (e + 1); // transforming e | ||
var n = (1 + e) * Math.log(t) / Math.log(e); | ||
@@ -177,3 +177,3 @@ return Math.abs(Math.cos(n) * Math.pow(e, n)); | ||
if (t === 1) { return 1; } | ||
e /= (e + 1); // transforming e for user friendlyness | ||
e /= (e + 1); // transforming e | ||
var n = (1 + e) * Math.log(1 - t) / Math.log(e); | ||
@@ -187,3 +187,3 @@ return 1.0 - Math.abs(Math.cos(n) * Math.pow(e, n)); | ||
if (t === 0) { return 0; } | ||
e /= (e + 1); // transforming e for user friendlyness | ||
e /= (e + 1); // transforming e | ||
n = (1 + e) * Math.log(2 * t) / Math.log(e); | ||
@@ -194,3 +194,3 @@ return Math.abs(0.5 * Math.cos(n) * Math.pow(e, n)); | ||
if (t === 1) { return 1; } | ||
e /= (e + 1); // transforming e for user friendlyness | ||
e /= (e + 1); // transforming e | ||
n = (1 + e) * Math.log(2 - 2 * t) / Math.log(e); | ||
@@ -197,0 +197,0 @@ return 0.5 + 0.5 * (1.0 - Math.abs(Math.cos(n) * Math.pow(e, n))); |
@@ -16,3 +16,3 @@ var TINA = require('./TINA.js'); | ||
TINA.Sequence = require('./Sequence'); | ||
TINA.Recorder = require('./Recorder'); | ||
// TINA.Recorder = require('./Recorder'); | ||
TINA.Delay = require('./Delay'); | ||
@@ -19,0 +19,0 @@ TINA.easing = require('./easing'); |
@@ -163,2 +163,4 @@ var BoundedPlayable = require('./BoundedPlayable'); | ||
} | ||
this._duration += duration; | ||
return this; | ||
@@ -165,0 +167,0 @@ }; |
5727
249943