diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2018-02-22 10:08:02 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2018-02-22 10:08:02 +0100 |
commit | 5848a432d9c59dfc5ba51d64181183768d8fb24f (patch) | |
tree | 3b7cc9e93f6b753742e5ab081bafc245ee7a2f84 /js | |
parent | 325162692ea2de30e4f7ebd8b858da15580844f1 (diff) | |
parent | 5d273cfb2986b77bacee28301ea108a81e7616bc (diff) | |
download | perl-software-in-gnu-guix-5848a432d9c59dfc5ba51d64181183768d8fb24f.tar perl-software-in-gnu-guix-5848a432d9c59dfc5ba51d64181183768d8fb24f.tar.gz |
Merge branch 'patch-1' of https://github.com/Jmuccigr/reveal.js into dev
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js index 230d001..d4778cb 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -154,6 +154,8 @@ hideAddressBar: true, // Opens links in an iframe preview overlay + // Add `data-preview-link` and `data-preview-link="false"` to customise each link + // individually previewLinks: false, // Exposes the reveal.js API through window.postMessage @@ -180,6 +182,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, @@ -877,6 +885,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 |