diff --git a/src/rallax.js b/src/rallax.js index 6f3dfa8..c911751 100644 --- a/src/rallax.js +++ b/src/rallax.js @@ -62,7 +62,7 @@ class RallaxObj { getTranslation() { const dist = this.scrollY() - this.startScroll const translation = (dist * this.speed) + this.accumulated - return translation >= 0 ? translation : 0 + return translation } getRect() { @@ -133,4 +133,4 @@ export default (target, userOptions = {}) => { } return rallax -} \ No newline at end of file +}