From dca140271c7cadd3a902a8d5b806e583f9f8dc1b Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 20 Jul 2026 00:39:49 +0200 Subject: [PATCH] =?UTF-8?q?fix(reveal):=20threshold=200=20=E2=80=94=20les?= =?UTF-8?q?=20sections=20plus=20hautes=20que=20le=20viewport=20ne=20se=20r?= =?UTF-8?q?=C3=A9v=C3=A9laient=20jamais?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- js/reveal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) => {