Skip to content

Commit

Permalink
fix(parallax): Add directionValue
Browse files Browse the repository at this point in the history
  • Loading branch information
apertureless committed Feb 2, 2018
1 parent 587a828 commit 9c9056b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Parallax.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
let animationValue = (window.pageYOffset * this.speedFactor)
if (animationValue <= availableOffset && animationValue >= 0) {
this.el.style.transform = `translate3d(0, ${animationValue * 1}px ,0)`
this.el.style.transform = `translate3d(0, ${animationValue * this.directionValue}px ,0)`
}
},
Expand Down

0 comments on commit 9c9056b

Please sign in to comment.