From 5d273cfb2986b77bacee28301ea108a81e7616bc Mon Sep 17 00:00:00 2001 From: John Muccigrosso Date: Sat, 10 Feb 2018 12:32:16 -0500 Subject: [PATCH] Background repeat & position to parallax background --- js/reveal.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/reveal.js b/js/reveal.js index c3713713..6cf8feeb 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -173,6 +173,12 @@ // Parallax background size parallaxBackgroundSize: '', // CSS syntax, e.g. "3000px 2000px" + // Parallax background repeat + parallaxBackgroundRepeat: '', // repeat/repeat-x/repeat-y/no-repeat/initial/inherit + + // Parallax background position + parallaxBackgroundPosition: '', // CSS syntax, e.g. "top left" + // Amount of pixels to move the parallax background per slide step parallaxBackgroundHorizontal: null, parallaxBackgroundVertical: null, @@ -867,6 +873,8 @@ dom.background.style.backgroundImage = 'url("' + config.parallaxBackgroundImage + '")'; dom.background.style.backgroundSize = config.parallaxBackgroundSize; + dom.background.style.backgroundRepeat = config.parallaxBackgroundRepeat; + dom.background.style.backgroundPosition = config.parallaxBackgroundPosition; // Make sure the below properties are set on the element - these properties are // needed for proper transitions to be set on the element via CSS. To remove