@zevra/ui 0.12.1 → 0.12.2
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/package.json +1 -1
- package/src/motion.js +5 -3
package/package.json
CHANGED
package/src/motion.js
CHANGED
|
@@ -34,9 +34,11 @@
|
|
|
34
34
|
io.unobserve(e.target);
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
/* Déclenche un peu AVANT
|
|
38
|
-
* l'entrée accompagne l'arrivée
|
|
39
|
-
|
|
37
|
+
/* Déclenche un peu AVANT l'entrée au viewport (marge basse positive) :
|
|
38
|
+
* l'entrée accompagne l'arrivée, et un saut de page (ancre de
|
|
39
|
+
* sommaire, molette rapide) n'atterrit jamais sur un écran vide qui
|
|
40
|
+
* attendrait le prochain cran de défilement. */
|
|
41
|
+
{ rootMargin: '0px 0px 12% 0px', threshold: 0.01 }
|
|
40
42
|
);
|
|
41
43
|
|
|
42
44
|
for (const el of document.querySelectorAll(ENTREES)) {
|