{"_id":"easy-ease","_rev":"15-9c68761b0552d7a92d001b55c0ee9109","name":"easy-ease","description":"A tiny easing package with no dependencies","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.0":{"name":"easy-ease","version":"1.0.0","description":"A tiny easing package (< 0.5 KB) with no dependencies","main":"lib/easyEase.js","scripts":{"test":"node test/test.js","transpile":"babel src -d lib","minify":"uglifyjs lib/easyEase.js --compress --mangle --source-map --output lib/easyEase.min.js","build":"npm run transpile && npm run minify && npm test"},"author":{"name":"David Gilbertson"},"license":"MIT","dependencies":{},"devDependencies":{"babel-cli":"6.26.0","babel-preset-env":"1.6.1","uglify-js":"3.3.2"},"files":["lib/"],"babel":{"presets":["env"]},"gitHead":"d5c0340584ea70170b0a1e19ea101519ba922004","_id":"easy-ease@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"},"dist":{"integrity":"sha512-VImN6EjmXb2dBr1tNrC6WcOjF9MkyTQwc8fZt+7sHShscoqKxBDRf+Fqtp9twUu5t7dCCxLUH+Li1KF8bt1GmQ==","shasum":"4556dcc9257ecbf73016fc2205c8ecfeac022a7c","tarball":"https://registry.npmjs.org/easy-ease/-/easy-ease-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCl4HoqlWLtf9Y+qBBjrSePISDdWveK4MbV2oQSiYVMeQIgBZ1uHHn61E7qFrew02ExNEXc4vNVPQkjZcopttVnQq8="}]},"maintainers":[{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-ease-1.0.0.tgz_1514620482410_0.6179375268984586"},"directories":{}},"1.0.1":{"name":"easy-ease","version":"1.0.1","description":"A tiny easing package (< 0.5 KB) with no dependencies","main":"lib/easyEase.js","scripts":{"prepublishOnly":"npm run build","build":"npm run transpile && npm run minify && npm test","test":"node test/test.js","transpile":"babel src -d lib","minify":"uglifyjs lib/easyEase.js --compress --mangle --source-map --output lib/easyEase.min.js"},"author":{"name":"David Gilbertson"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/davidgilbertson/easy-ease.git"},"dependencies":{},"devDependencies":{"babel-cli":"6.26.0","babel-preset-env":"1.6.1","uglify-js":"3.3.2"},"files":["lib/"],"babel":{"presets":["env"]},"gitHead":"a442ea913c7ed1093f41b3a5df3e55d545df9cec","bugs":{"url":"https://github.com/davidgilbertson/easy-ease/issues"},"homepage":"https://github.com/davidgilbertson/easy-ease#readme","_id":"easy-ease@1.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"},"dist":{"integrity":"sha512-EyHnaplXqJKvT9BsWSV+XjW5DbK8ynbkgdgkjWFziWKsSLsx8xCbnpJs2r/bg0ektT0CU2BNWk1dy/f1iRJB7Q==","shasum":"1e7f243bf428933a23e0b5a2583b4d7bd67e25d8","tarball":"https://registry.npmjs.org/easy-ease/-/easy-ease-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxAw5Zr9hl6wFIlGA0tBqFny1xkLZQCJsTjlOA+/CSwAIgK9x0XfraImazc3yc/UIZsqVfeyO/bmkK702ufx9e7Kg="}]},"maintainers":[{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-ease-1.0.1.tgz_1514621086353_0.36940275598317385"},"directories":{}},"1.0.3":{"name":"easy-ease","version":"1.0.3","description":"A tiny easing package (< 0.5 KB) with no dependencies","keywords":["animation","ease","easing","tween"],"main":"lib/easyEase.js","scripts":{"prepublishOnly":"npm run build","build":"npm run transpile && npm run minify && npm test","test":"node test/test.js","transpile":"babel src -d lib","minify":"uglifyjs lib/easyEase.js --compress --mangle --source-map --output lib/easyEase.min.js"},"author":{"name":"David Gilbertson"},"license":"MIT","bugs":{"url":"https://github.com/davidgilbertson/easy-ease/issues"},"repository":{"type":"git","url":"git+https://github.com/davidgilbertson/easy-ease.git"},"dependencies":{},"devDependencies":{"babel-cli":"6.26.0","babel-preset-env":"1.6.1","uglify-js":"3.3.2"},"files":["lib/"],"babel":{"presets":["env"]},"gitHead":"9ac0b1db6b54e0ee78321207ba0fa5592b5261f0","homepage":"https://github.com/davidgilbertson/easy-ease#readme","_id":"easy-ease@1.0.3","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"},"dist":{"integrity":"sha512-Ri2unjs5KJSMi1NltAfQ6ERBefKIPpRscKdkPySp+Rk4P2pjpJ7Yeh8Iknd5mKHhJLpgq+1aZD8ihRpXJkZ+pQ==","shasum":"07d9a2e37d215b0b44a1c2bf4f21ad7c4ee62802","tarball":"https://registry.npmjs.org/easy-ease/-/easy-ease-1.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFqno2QlLEF0+ngINFf8FxHkqX/Hvo5+6OciXBJFk+LgIgGcif+2i7z500VGdKYPd2cMOu/TqG/gLwrRDtft2r4eo="}]},"maintainers":[{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-ease-1.0.3.tgz_1514686117676_0.034496725304052234"},"directories":{}},"1.0.4":{"name":"easy-ease","version":"1.0.4","description":"A tiny easing package (< 0.5 KB) with no dependencies","keywords":["animation","ease","easing","tween"],"main":"lib/easyEase.js","scripts":{"prepublishOnly":"npm run build","build":"npm run transpile && npm run minify && npm test","test":"node test/test.js","transpile":"babel src -d lib","minify":"uglifyjs lib/easyEase.js --compress --mangle --source-map --output lib/easyEase.min.js"},"author":{"name":"David Gilbertson"},"license":"MIT","bugs":{"url":"https://github.com/davidgilbertson/easy-ease/issues"},"repository":{"type":"git","url":"git+https://github.com/davidgilbertson/easy-ease.git"},"dependencies":{},"devDependencies":{"babel-cli":"6.26.0","babel-preset-env":"1.6.1","uglify-js":"3.3.2"},"files":["lib/"],"babel":{"presets":["env"]},"gitHead":"6dfd9eec5353a4ccd7c8a474d0095fb23d29897d","homepage":"https://github.com/davidgilbertson/easy-ease#readme","_id":"easy-ease@1.0.4","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"},"dist":{"integrity":"sha512-2ZATc3qZGKmudPqalwqCEYXTiBRfipxpg0YFB5QIDGIH//OtycK6wjd9xAggdGVFVcP5+tHddvaVZnml1X8T8A==","shasum":"3459ee34035c4e1a1c0d671ed78d24f05fc3a049","tarball":"https://registry.npmjs.org/easy-ease/-/easy-ease-1.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPAU0R8HgfcvXnAR6nOtcq4zuE7ML5dZqkueIf5rxDVAIhAN5IZDA8c40iNtZLQxtdKVDtlrVj7tRHdfMTA8fnDe+R"}]},"maintainers":[{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-ease-1.0.4.tgz_1514686276632_0.9170194840990007"},"directories":{}},"1.0.5":{"name":"easy-ease","version":"1.0.5","description":"A tiny easing package (< 0.5 KB) with no dependencies","keywords":["animation","ease","easing","tween"],"main":"lib/easyEase.js","scripts":{"prepublishOnly":"npm run build","build":"npm run transpile && npm run minify && npm test","test":"node test/test.js","transpile":"babel src -d lib","minify":"uglifyjs lib/easyEase.js --compress --mangle --source-map --output lib/easyEase.min.js"},"author":{"name":"David Gilbertson"},"license":"MIT","bugs":{"url":"https://github.com/davidgilbertson/easy-ease/issues"},"repository":{"type":"git","url":"git+https://github.com/davidgilbertson/easy-ease.git"},"dependencies":{},"devDependencies":{"babel-cli":"6.26.0","babel-preset-env":"1.6.1","uglify-js":"3.3.2"},"files":["lib/"],"babel":{"presets":["env"]},"gitHead":"ea5699baec11eafe8812a8bc0aafd0026e06236f","homepage":"https://github.com/davidgilbertson/easy-ease#readme","_id":"easy-ease@1.0.5","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"},"dist":{"integrity":"sha512-+/yBCfmljqjEC0j79mnWW4cp481s2yH91wl8P2u3wPMj0jiCwbVFVZqljriZ7woRFX/ZN9jCpbLrpvGdf8Tabw==","shasum":"d39de2ffb7c576c61f963b74ebcd03a7ebfa7b09","tarball":"https://registry.npmjs.org/easy-ease/-/easy-ease-1.0.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFEDc40TY/egPiLHRcgg/wEEBV3HiKaKU/1UusgicN9gIhALwxh/YD+JXlE9ESd3FYR+9DyW31pUJUjoFyEWfNzcxr"}]},"maintainers":[{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-ease-1.0.5.tgz_1514688474552_0.7767211690079421"},"directories":{}},"1.0.7":{"name":"easy-ease","version":"1.0.7","description":"A tiny easing package (< 0.5 KB) with no dependencies","keywords":["animation","ease","easing","tween"],"main":"lib/easyEase.js","scripts":{"prepublishOnly":"npm run build","build":"npm run transpile && npm run minify && npm test","test":"node test/test.js","transpile":"babel src -d lib","minify":"uglifyjs lib/easyEase.js --compress --mangle --source-map --output lib/easyEase.min.js"},"author":{"name":"David Gilbertson"},"license":"MIT","bugs":{"url":"https://github.com/davidgilbertson/easy-ease/issues"},"repository":{"type":"git","url":"git+https://github.com/davidgilbertson/easy-ease.git"},"dependencies":{},"devDependencies":{"babel-cli":"6.26.0","babel-preset-env":"1.6.1","uglify-js":"3.3.2"},"files":["lib/"],"babel":{"presets":["env"]},"gitHead":"03d6beb6f3691724c7ff38b0983b400e8a5a3c89","homepage":"https://github.com/davidgilbertson/easy-ease#readme","_id":"easy-ease@1.0.7","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"},"dist":{"integrity":"sha512-GgdfB3KlgMKZLzzjswRUUTWaUcOGTfrlyAeq2+S6bNim292nzo6fN8wwB21FWsH30S0opoQEeR2PA0I8PgnjMw==","shasum":"e8f0770f07bb0ebd4a089af595a8233caf74fda2","tarball":"https://registry.npmjs.org/easy-ease/-/easy-ease-1.0.7.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsvsOgsi3gHjuvStt0i/Q/o0RK5yGeg+LVanipu9bHvwIhANQq2WzdPQ44quv/kHAJLHxxshb3z9hyKc7BpZdYmmPH"}]},"maintainers":[{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-ease-1.0.7.tgz_1514796955157_0.7550182153936476"},"directories":{}},"1.0.8":{"name":"easy-ease","version":"1.0.8","description":"A tiny easing package (< 0.5 KB) with no dependencies","keywords":["animation","ease","easing","tween"],"main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"David Gilbertson"},"license":"MIT","bugs":{"url":"https://github.com/davidgilbertson/easy-ease/issues"},"repository":{"type":"git","url":"git+https://github.com/davidgilbertson/easy-ease.git"},"dependencies":{},"devDependencies":{},"gitHead":"d8f437f3dd0db505fa92806eed9723275ad65483","homepage":"https://github.com/davidgilbertson/easy-ease#readme","_id":"easy-ease@1.0.8","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"},"dist":{"integrity":"sha512-KUKMYaF0YfZKQhZBOR35+NB8rfBcAx+X2OeC8/CmiNk1z133e0cUIl60fY9zuUaZJpCvb1J/e3kPBO92ipiLEQ==","shasum":"9e7279a0e5ca58ec0141ddab26c4d66028f64fb8","tarball":"https://registry.npmjs.org/easy-ease/-/easy-ease-1.0.8.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPXfAx5ZSLt/+HJeyu1UFF5qiV/1HMLBrsDE4ZAoAS1AIgFcpp/6OV2ccyYnQWuFyG7D6QEJFWhJZeBn2a5Qp7k1A="}]},"maintainers":[{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-ease-1.0.8.tgz_1517298919052_0.4628797930199653"},"directories":{}},"1.0.9":{"name":"easy-ease","version":"1.0.9","description":"A tiny easing package with no dependencies","keywords":["animation","ease","easing","tween"],"main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"David Gilbertson"},"license":"MIT","bugs":{"url":"https://github.com/davidgilbertson/easy-ease/issues"},"repository":{"type":"git","url":"git+https://github.com/davidgilbertson/easy-ease.git"},"dependencies":{},"devDependencies":{},"gitHead":"c9bff0f286d6ccebb580f6cba6db00561a41ede2","homepage":"https://github.com/davidgilbertson/easy-ease#readme","_id":"easy-ease@1.0.9","_nodeVersion":"12.9.1","_npmVersion":"6.11.2","dist":{"integrity":"sha512-6urP1sGYAtb9It7ujwgtKcFkBdQS51q1pbSahxnRcmI438Hco10bgqopT2XZkBy/FNqBamxLU3S9PRu13IeSjQ==","shasum":"b30a76d6df4456dc1af161f81beed2a5cf7e348c","tarball":"https://registry.npmjs.org/easy-ease/-/easy-ease-1.0.9.tgz","fileCount":6,"unpackedSize":7164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxlOeCRA9TVsSAnZWagAAHU4P/iRd6KWcZsEyrg5S6Nr3\nzBHj0V/q8Ign6XthTrri7rKf9lpgi2+c7lHqMZHzjEWfDT9eAxtY2+85ad8k\noGRfdfKVhVfxpBraWl7VqdPT8adgo5MFSeT6nb8hzH1kU23oklZwNvgx2QN+\nuDYpA4dI6kPAbozHapX7iU53jNrOx8qqIapLPRWvED/rXCclYHDu/jka7hmO\nz8XRMQUSOQvhFZTTd0ATStxExSqQ1dLgoWA2oOvk7LE4yvvlYZv1McYHAE1s\nExBqmUJUdfFQUjyIGv+Oxl+XOwQhMX95OP7F306jLSN8Wgohnf6KAWdG5ACO\nPpKEEOrclcVyd0fk3B5Ya5cKzvyOPFrWrQ/DVpaYhw9kSIaNHFtLyYiSbx3s\nrkzj6/C8ZgBsejoX7L6J6YMruDrb+sVaAamATH4a3+F5KmejqflohoN6ux9T\nrrmdMidq4tkOjRwn4h/hTUUwiCq9wJERkrrUrwpvAI740UWemiiJxb97Cicn\nHWJdhSYUxoPRVKdH03BHzsxq5t77aq8Xxkc5OQb8/9lYz/5018WnMtjsJ2i4\n79aZJA/wonPjsUWOMgGIXHeNPaLZEl73XlzfsxuKidkwmvpdzXR9l6iu0KCB\nQRBjlH4Gl17cNWUQhgWRcMkFp2QTe3yef1RO/9HqLVdJtAAEH4Ut/+rjxppv\nobSh\r\n=g9K7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIACiblVEPVDar80MIAltNgZJoxoxFCn0Lb/s1yVn5CE0AiEApYIXnJsXZWe18uBSdM0oY7FX+c7ficfO6A8xRPt3zNw="}]},"maintainers":[{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"}],"_npmUser":{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-ease_1.0.9_1573278622417_0.5782830234888465"},"_hasShrinkwrap":false}},"readme":"# Easy Ease\nA tiny easing package (~0.2 KB gzipped) with no dependencies. For doing stuff like:\n* Scrolling smoothly to the top of the page\n* Sliding out a navigation menu\n* Sliding open an accordion component\n\nYou won't find any options for different types of easing here. What you get is a nice ease-in-out \nsimilar to the default animation for `transition` in CSS.\n\nIf you'd prefer to choose from the full suite of \nRobert Penner equations, try [tween.js](https://www.npmjs.com/package/@tweenjs/tween.js)\nor [d3-ease](https://www.npmjs.com/package/d3-ease) instead.\n\n# Usage\n`npm install easy-ease`\n\n## Example\n\nTo scroll the window to the top of the page:\n\n```js\nimport ease from 'easy-ease';\n\nease({\n  startValue: window.scrollY,\n  endValue: 0,\n  onStep: value => window.scroll(0, value),\n});\n```\n\nHave a play with some other examples on CodePen https://codepen.io/davidgilbertson/pen/GyrZNz\n\n## API\nThe `ease` function takes a single parameter, an object. The properties of that object are:\n\n| Property | Type | Description | Default |\n| ---- | ---- | ---- | ---- |\n| `startValue` | Number | The value at which to start | `0` |\n| `endValue` | Number | The value at which to end | `1` |\n| `durationMs` | Number | The amount of time (in milliseconds) the transition should take | `200` |\n| `onStep` | Function | This will be called on each step of the transition. That's once for each 'animation frame' - roughly every 16 milliseconds. The current value is passed as the only argument. The last time it is called the value is guaranteed to be `endValue`. | No default |\n| `onComplete` | Function | Called when the transition is complete. Will be called after the final call to `onStep`. No argument is passed to this function. | noop |\n","maintainers":[{"name":"davidgilbertson","email":"gilbertson.david@gmail.com"}],"time":{"modified":"2022-04-30T18:49:49.464Z","created":"2017-12-30T07:54:42.534Z","1.0.0":"2017-12-30T07:54:42.534Z","1.0.1":"2017-12-30T08:04:46.428Z","1.0.3":"2017-12-31T02:08:37.739Z","1.0.4":"2017-12-31T02:11:16.720Z","1.0.5":"2017-12-31T02:47:54.679Z","1.0.7":"2018-01-01T08:55:55.289Z","1.0.8":"2018-01-30T07:55:19.189Z","1.0.9":"2019-11-09T05:50:22.562Z"},"author":{"name":"David Gilbertson"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/davidgilbertson/easy-ease#readme","repository":{"type":"git","url":"git+https://github.com/davidgilbertson/easy-ease.git"},"bugs":{"url":"https://github.com/davidgilbertson/easy-ease/issues"},"keywords":["animation","ease","easing","tween"],"users":{"nemolo":true,"919977665544":true,"veentoo":true,"robben1234":true,"coockoo":true,"antonk52":true,"jacob-beltran":true}}