@wcstack/intersection 4.0.4 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +1 -1
- package/README.md +1 -1
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -53,8 +53,8 @@ npm install @wcstack/intersection
|
|
|
53
53
|
`visible` はターゲットが初めて交差したときに `true` に切り替わり、その後 `true` の**ままになります**。画像の `src` をこれにバインドすると、画像はビューにスクロールインしたときに一度だけ読み込まれます。
|
|
54
54
|
|
|
55
55
|
```html
|
|
56
|
-
<script type="module" src="https://esm.run/@wcstack/state/auto"></script>
|
|
57
56
|
<script type="module" src="https://esm.run/@wcstack/intersection/auto"></script>
|
|
57
|
+
<script type="module" src="https://esm.run/@wcstack/state/auto"></script>
|
|
58
58
|
|
|
59
59
|
<wcs-state>
|
|
60
60
|
<script type="module">
|
package/README.md
CHANGED
|
@@ -53,8 +53,8 @@ npm install @wcstack/intersection
|
|
|
53
53
|
`visible` flips to `true` the first time the target intersects and **stays** `true`. Bind the image `src` to it and the image only loads once it scrolls into view.
|
|
54
54
|
|
|
55
55
|
```html
|
|
56
|
-
<script type="module" src="https://esm.run/@wcstack/state/auto"></script>
|
|
57
56
|
<script type="module" src="https://esm.run/@wcstack/intersection/auto"></script>
|
|
57
|
+
<script type="module" src="https://esm.run/@wcstack/state/auto"></script>
|
|
58
58
|
|
|
59
59
|
<wcs-state>
|
|
60
60
|
<script type="module">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wcstack/intersection",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Declarative IntersectionObserver component for Web Components. Framework-agnostic visibility primitive via wc-bindable-protocol.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.esm.js",
|