|
@@ -110,7 +110,7 @@ Sometimes it's useful to evaluate an expression only the first time an element e
|
|
|
<a name="half"></a>
|
|
|
### .half
|
|
|
|
|
|
-Evaluates the expression once the intersection threshold exceeds `0.5`.
|
|
|
+Evaluates the expression once the intersection threshold exceeds `0.5`.
|
|
|
|
|
|
Useful for elements where it's important to show at least part of the element.
|
|
|
|
|
@@ -121,7 +121,7 @@ Useful for elements where it's important to show at least part of the element.
|
|
|
<a name="full"></a>
|
|
|
### .full
|
|
|
|
|
|
-Evaluates the expression once the intersection threshold exceeds `0.99`.
|
|
|
+Evaluates the expression once the intersection threshold exceeds `0.99`.
|
|
|
|
|
|
Useful for elements where it's important to show the whole element.
|
|
|
|
|
@@ -134,9 +134,9 @@ Useful for elements where it's important to show the whole element.
|
|
|
|
|
|
Allows you to control the `threshold` property of the underlying `IntersectionObserver`:
|
|
|
|
|
|
-This value should be a decimal in the range "0-1". A value of "0" means: trigger an "intersection" if ANY part of the element enters the viewport (the default behavior). While a value of "1" means: don't trigger an "intersection" unless the entire element has entered the viewport.
|
|
|
+This value should be in the range of "0-100". A value of "0" means: trigger an "intersection" if ANY part of the element enters the viewport (the default behavior). While a value of "100" means: don't trigger an "intersection" unless the entire element has entered the viewport.
|
|
|
|
|
|
-Any value in between is a "ratio" of those two extremes.
|
|
|
+Any value in between is a percentage of those two extremes.
|
|
|
|
|
|
For example if you want to trigger an intersection after half of the element has entered the page, you can use `.threshold.50`:
|
|
|
|