gatsby-image
Advanced tools
Comparing version 1.0.21 to 1.0.23
@@ -73,3 +73,4 @@ "use strict"; | ||
if (l[0] === entry.target) { | ||
if (entry.isIntersecting) { | ||
// Edge doesn't currently support isIntersecting, so also test for an intersectionRatio > 0 | ||
if (entry.isIntersecting || entry.intersectionRatio > 0) { | ||
io.unobserve(l[0]); | ||
@@ -76,0 +77,0 @@ l[1](); |
{ | ||
"name": "gatsby-image", | ||
"version": "1.0.21", | ||
"version": "1.0.23", | ||
"description": "Lazy-loading React image component with optional support for the blur-up effect.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -174,7 +174,7 @@ # gatsby-image | ||
| `alt` | `string` | Passed to the `img` element | | ||
| `className` | `string|object` | Passed to the wrapper div. Object is needed to support Glamor's css prop | | ||
| `outerWrapperClassName` | `string|object` | Passed to the outer wrapper div. Object is needed to support Glamor's css prop | | ||
| `className` | `string\|object` | Passed to the wrapper div. Object is needed to support Glamor's css prop | | ||
| `outerWrapperClassName` | `string\|object` | Passed to the outer wrapper div. Object is needed to support Glamor's css prop | | ||
| `style` | `object` | Spread into the default styles in the wrapper div | | ||
| `position` | `string` | Defaults to `relative`. Pass in `absolute` to make the component `absolute` positioned | | ||
| `backgroundColor` | `string|bool` | Set a colored background placeholder. If true, uses "lightgray" for the color. You can also pass in any valid color string. | | ||
| `backgroundColor` | `string\|bool` | Set a colored background placeholder. If true, uses "lightgray" for the color. You can also pass in any valid color string. | | ||
| `onLoad` | `func` | A callback that is called when the full-size image has loaded. | ||
@@ -181,0 +181,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
21917
340