Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tweenjs/tween.js

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tweenjs/tween.js - npm Package Compare versions

Comparing version 17.1.1 to 17.2.0

src/.backup1.Tween.js

2

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc