transcroll
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -21,3 +21,2 @@ export const easings = { | ||
* @param {Element|Window} el container element. Default: window | ||
* @param {string} axis 'x' or 'y' axis | ||
* @param {number} duration animation duration in ms. Default: 200 | ||
@@ -32,3 +31,3 @@ * @param {function|string} easing easing function or function name | ||
*/ | ||
export default (target, { el = window, axis = 'y', duration = 200, easing = easings.easeInQuad, jump = 0.5, interrupt = true } = {}) => { | ||
export default (target, { el = window, duration = 200, easing = easings.easeInQuad, jump = 0.5, interrupt = true } = {}) => { | ||
function getPosition() { | ||
@@ -35,0 +34,0 @@ return el === window ? window.pageYOffset : el.scrollTop; |
{ | ||
"name": "transcroll", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Animate scroll in a modern way", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
5247
56
94