1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-10-25 20:26:36 +02:00

reader mode supports scroll snapping, sticky pages with scroll triggers are always full height

This commit is contained in:
Hakim El Hattab
2023-09-21 13:35:49 +02:00
parent f0950ba9ae
commit e49e89a557
9 changed files with 72 additions and 48 deletions

View File

@@ -262,10 +262,19 @@ export default {
// triggered animations
view: null,
// When the presentation is in reader mode, this controls whether each
// page should be as tall as the presentation viewport. Set this to false
// for a more compact layout with multiple slides visible at a time.
readerFullPageHeight: true,
// Adjusts the height of each slide in reader mode
// - full: Each slide is as tall as the viewport
// - compact: Slides are as small as possible, allowing multiple slides
// to be visible in parallel on tall devices
readerLayout: 'full',
// Control how scroll snapping works in reader mode.
// - false: No snapping, scrolling is continuous
// - proximity: Snap when close to a slide
// - mandatory: Always snap to the closest slide
//
// Only applies to presentations in reader mode.
readerScrollSnap: 'proximity',
// The maximum number of pages a single slide can expand onto when printing
// to PDF, unlimited by default