animated-scroll-to
Advanced tools
Comparing version 1.1.1 to 1.1.3
@@ -15,2 +15,3 @@ (function() { | ||
element: window, | ||
onComplete: undefined, | ||
}; | ||
@@ -126,2 +127,7 @@ | ||
} | ||
// Animation is complete, execute callback if there is any | ||
if (options.onComplete && typeof options.onComplete === 'function') { | ||
options.onComplete() | ||
} | ||
} | ||
@@ -128,0 +134,0 @@ }; |
{ | ||
"name": "animated-scroll-to", | ||
"version": "1.1.1", | ||
"version": "1.1.3", | ||
"description": "Simple, plain JavaScript animated window scroll", | ||
@@ -5,0 +5,0 @@ "main": "animated-scroll-to.js", |
@@ -67,3 +67,6 @@ # animated-scroll-to | ||
// if set to "false" user input will be disabled until animated scroll is complete | ||
cancelOnUserAction: true | ||
cancelOnUserAction: true, | ||
// function that will be executed when the scroll animation is finished | ||
onComplete: function() {} | ||
}; | ||
@@ -70,0 +73,0 @@ |
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
127
93
16973
7