Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "scrollama", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Lightweight scrollytelling library using IntersectionObserver", | ||
@@ -5,0 +5,0 @@ "main": "build/scrollama.js", |
@@ -10,2 +10,4 @@ ###### scrollama.js | ||
**Note: As of version 1.4.0, you must manually add the IntersectionObserver polyfill for cross-browser support. See [installation](https://github.com/russellgoldenberg/scrollama#installation) for details.** | ||
As seen on [The Pudding](https://pudding.cool/): | ||
@@ -55,5 +57,8 @@ | ||
**Note: As of version 1.4.0, the IntersectionObserver polyfill has been removed from the build. You must include it yourself for cross-browser support.** | ||
Old school (exposes the `scrollama` global): | ||
```html | ||
<script src='https://unpkg.com/intersection-observer'></script> | ||
<script src='https://unpkg.com/scrollama'></script> | ||
@@ -65,3 +70,3 @@ ``` | ||
```sh | ||
npm install scrollama | ||
npm install scrollama intersection-observer | ||
``` | ||
@@ -72,2 +77,3 @@ | ||
```js | ||
import 'intersection-observer' | ||
import scrollama from 'scrollama'; // or... | ||
@@ -74,0 +80,0 @@ const scrollama = require('scrollama'); |
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
601085
295