aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 4693c00..36ea3dc 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -421,6 +421,10 @@ export default function( revealElement, options ) {
dom.wrapper.setAttribute( 'data-transition-speed', config.transitionSpeed );
dom.wrapper.setAttribute( 'data-background-transition', config.backgroundTransition );
+ // Expose our configured slide dimensions as custom props
+ dom.viewport.style.setProperty( '--size-width', config.width + 'px' );
+ dom.viewport.style.setProperty( '--size-height', config.height + 'px' );
+
if( config.shuffle ) {
shuffle();
}