Skip to content

Commit 1693142

Browse files
author
Geoffrey Signorato
committed
fix an issue where the image get parallax out of its original container
1 parent e86ea09 commit 1693142

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/simpleParallax.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/simpleParallax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@
345345
if (this.settings.overflow === false) {
346346
//if overflow option is set to false
347347
//add the scale style
348-
inlineCss = 'scale(' + this.settings.scale + ') translate3d(' + translateValueX + ', ' + translateValueY + ', 0)';
348+
inlineCss = 'translate3d(' + translateValueX + ', ' + translateValueY + ', 0) scale(' + this.settings.scale + ')';
349349
} else {
350350
inlineCss = 'translate3d(' + translateValueX + ', ' + translateValueY + ', 0)';
351351
}

0 commit comments

Comments
 (0)