@tweenjs/tween.js
Advanced tools
Comparing version 17.1.1 to 17.2.0
{ | ||
"name": "@tweenjs/tween.js", | ||
"description": "Super simple, fast and easy to use tweening engine which incorporates optimised Robert Penner's equations.", | ||
"version": "17.1.1", | ||
"version": "17.2.0", | ||
"main": "src/Tween.js", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/tweenjs/tween.js", |
@@ -110,2 +110,3 @@ # tween.js | ||
* Also: [es6-tween](https://github.com/tweenjs/es6-tween), a port of tween.js to ES6/Harmony by [dalisoft](https://github.com/dalisoft) | ||
* [Understanding tween.js](https://mikebolt.me/article/understanding-tweenjs.html) | ||
@@ -112,0 +113,0 @@ ## Examples |
@@ -248,2 +248,7 @@ /** | ||
group: function group(group) { | ||
this._group = group; | ||
return this; | ||
}, | ||
delay: function delay(amount) { | ||
@@ -270,5 +275,5 @@ | ||
yoyo: function yoyo(yoyo) { | ||
yoyo: function yoyo(yy) { | ||
this._yoyo = yoyo; | ||
this._yoyo = yy; | ||
return this; | ||
@@ -278,5 +283,5 @@ | ||
easing: function easing(easing) { | ||
easing: function easing(eas) { | ||
this._easingFunction = easing; | ||
this._easingFunction = eas; | ||
return this; | ||
@@ -286,5 +291,5 @@ | ||
interpolation: function interpolation(interpolation) { | ||
interpolation: function interpolation(inter) { | ||
this._interpolationFunction = interpolation; | ||
this._interpolationFunction = inter; | ||
return this; | ||
@@ -349,3 +354,3 @@ | ||
elapsed = (time - this._startTime) / this._duration; | ||
elapsed = elapsed > 1 ? 1 : elapsed; | ||
elapsed = (this._duration === 0 || elapsed > 1) ? 1 : elapsed; | ||
@@ -352,0 +357,0 @@ value = this._easingFunction(elapsed); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46750
1155
296
8