aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Muccigrosso <Jmuccigr@users.noreply.github.com>2018-02-10 12:32:16 -0500
committerGitHub <noreply@github.com>2018-02-10 12:32:16 -0500
commit5d273cfb2986b77bacee28301ea108a81e7616bc (patch)
tree26ef87cd769e89dbe625c40ad414584f18a08cc0
parent7991693bde3ee680868dfbfa1291d96735571c22 (diff)
downloadperl-software-in-gnu-guix-5d273cfb2986b77bacee28301ea108a81e7616bc.tar
perl-software-in-gnu-guix-5d273cfb2986b77bacee28301ea108a81e7616bc.tar.gz
Background repeat & position to parallax background
-rw-r--r--js/reveal.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index c371371..6cf8fee 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