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

easing

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easing - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

graph.png

10

browser-easing.js

@@ -328,2 +328,3 @@ var require = function (file, cwd) {

var endToEnd = false;
var invert = false;
if (options !== undefined) {

@@ -333,2 +334,5 @@ if ((options.endToEnd !== undefined) && (options.endToEnd === true)) {

}
if ((options.invert !== undefined) && (options.invert === true)) {
invert = true;
}
}

@@ -391,3 +395,7 @@ // you can call it with either Easing(11, 'linear') or Easing(new Array(11), 'linear')

}
if (invert) {
for (var i = 0; i < list.length;i++) {
list[i] = 1 - list[i];
}
}
return list;

@@ -394,0 +402,0 @@ };

@@ -6,2 +6,3 @@ module.exports = exports = Easing;

var endToEnd = false;
var invert = false;
if (options !== undefined) {

@@ -11,2 +12,5 @@ if ((options.endToEnd !== undefined) && (options.endToEnd === true)) {

}
if ((options.invert !== undefined) && (options.invert === true)) {
invert = true;
}
}

@@ -69,4 +73,8 @@ // you can call it with either Easing(11, 'linear') or Easing(new Array(11), 'linear')

}
if (invert) {
for (var i = 0; i < list.length;i++) {
list[i] = 1 - list[i];
}
}
return list;
};

2

package.json

@@ -5,3 +5,3 @@ {

"description": "Easing Functions Without the Framework Cruft",
"version": "0.0.2",
"version": "0.0.3",
"keywords" : [

@@ -8,0 +8,0 @@ "easing",

@@ -0,1 +1,3 @@

![easing](https://github.com/rook2pawn/node-easing/raw/master/graph.png)
easing

@@ -97,4 +99,13 @@ ======

If we wanted to go from 0 to 1 back to 0 quadratically, simply call Easing(list,'quadratic',{endToEnd:true});
If we wanted to go from 0 to 1 back to 0 quadratically, simply call
Easing(list,'quadratic',{endToEnd:true});
Invert
------
If we want to go from 1 to 0 (or 1 to 0 back to 1) instead of 0 to 1, say 'linear' style, simply call
Easing(list,'linear',{invert:true});
You can mix and match these options.
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