animated-scroll-to
Advanced tools
Comparing version 2.0.12 to 2.1.0
# Changelog | ||
### v2.1.0 | ||
08.03.2020. | ||
**Removed** | ||
* Removed support for using the script in browsers directly. It was broken, so probably was not using it anyway. Use version 1 if you really need it. | ||
----- | ||
### v2.0.12 | ||
@@ -4,0 +14,0 @@ |
@@ -320,9 +320,1 @@ "use strict"; | ||
exports.default = animateScrollTo; | ||
// Support for direct usage in browsers | ||
// This is mostly to keep it similar to v1 | ||
// Don't forget to include Promise polyfill for IE | ||
// <script src="https://unpkg.com/es6-promise/dist/es6-promise.auto.min.js"></script> | ||
// https://github.com/stefanpenner/es6-promise | ||
if (WINDOW_EXISTS) { | ||
window.animateScrollTo = animateScrollTo; | ||
} |
{ | ||
"name": "animated-scroll-to", | ||
"version": "2.0.12", | ||
"version": "2.1.0", | ||
"description": "Simple, plain JavaScript animated window scroll", | ||
@@ -5,0 +5,0 @@ "main": "./lib/animated-scroll-to.js", |
@@ -166,6 +166,2 @@ # animated-scroll-to | ||
### Usage in the browser directly | ||
It is not recommended but you can use `animateScrollTo` directly in the browser, by including `lib/animated-scroll-to.js` in your page. Please note this file is not minified. | ||
## Why? | ||
@@ -172,0 +168,0 @@ |
@@ -377,11 +377,1 @@ export type TCoords = [number | null | undefined, number | null | undefined]; | ||
export default animateScrollTo; | ||
// Support for direct usage in browsers | ||
// This is mostly to keep it similar to v1 | ||
// Don't forget to include Promise polyfill for IE | ||
// <script src="https://unpkg.com/es6-promise/dist/es6-promise.auto.min.js"></script> | ||
// https://github.com/stefanpenner/es6-promise | ||
if (WINDOW_EXISTS) { | ||
(window as any).animateScrollTo = animateScrollTo; | ||
} | ||
Sorry, the diff of this file is not supported yet
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
13
60915
675
186