Skip to content
Snippets Groups Projects
Unverified Commit 5d273cfb authored by John Muccigrosso's avatar John Muccigrosso Committed by GitHub
Browse files

Background repeat & position to parallax background

parent 7991693b
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment