aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAsliddinbek Azizovich <[email protected]>2025-11-30 17:45:36 +0500
committerGitHub <[email protected]>2025-11-30 13:45:36 +0100
commit094061d946f12961b9af0b400befbb798f980be7 (patch)
treeddb7f89ca31c93fb7a9546c5fce3f1779ad573c4 /data
parent1dcb984453a61cb37d091df7a0fba404207327d3 (diff)
Add reveal.js scroll view option to HTML writer (#11305)
* Add revealjs `scroll` view option to HTML writer * Add `scrollSnap` option into default.revealjs Closes #10052
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.revealjs13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/templates/default.revealjs b/data/templates/default.revealjs
index 78edbae77..5278dd145 100644
--- a/data/templates/default.revealjs
+++ b/data/templates/default.revealjs
@@ -232,6 +232,19 @@ $endif$
// devices. It is advisable to set this to a lower number than
// viewDistance in order to save resources.
mobileViewDistance: $mobileViewDistance$,
+$if(view)$
+
+ // Enable scroll view
+ view: '$view/nowrap$',
+ // see https://revealjs.com/scroll-view/#scrollbar
+ scrollProgress: $scrollProgress$,
+ // see https://revealjs.com/scroll-view/#url-activation
+ scrollActivationWidth: '$scrollActivationWidth$',
+ // see https://revealjs.com/scroll-view/#scroll-snapping
+ scrollSnap: '$scrollSnap$',
+ // Experimental. see https://revealjs.com/scroll-view/#scroll-snapping
+ scrollLayout: '$scrollLayout$',
+$endif$
$if(parallaxBackgroundImage)$
// Parallax background image