diff --git a/js/reveal.js b/js/reveal.js index db57a5d..81ec6f0 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -30,7 +30,10 @@ export function initReveal(selector = "[data-reveal]") { } } }, - { threshold: 0.15, rootMargin: "0px 0px -10% 0px" } + // threshold 0 : un bloc plus haut que le viewport ne peut jamais + // atteindre un ratio > viewport/bloc — le rootMargin -10% suffit + // à éviter les déclenchements au ras du bord. + { threshold: 0, rootMargin: "0px 0px -10% 0px" } ); targets.forEach((el) => {