Skip to content

Commit 9c9056b

Browse files
committed
fix(parallax): Add directionValue
1 parent 587a828 commit 9c9056b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Parallax.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
let animationValue = (window.pageYOffset * this.speedFactor)
8585
8686
if (animationValue <= availableOffset && animationValue >= 0) {
87-
this.el.style.transform = `translate3d(0, ${animationValue * 1}px ,0)`
87+
this.el.style.transform = `translate3d(0, ${animationValue * this.directionValue}px ,0)`
8888
}
8989
},
9090

0 commit comments

Comments
 (0)