diff --git a/src/animations/index.js b/src/animations/index.js index d690e20..4abecd1 100644 --- a/src/animations/index.js +++ b/src/animations/index.js @@ -33,7 +33,7 @@ export const animateIn = () => { easing: 'easeOutQuart', duration: animDuration }) - window.addEventListener('scroll', fn.debounce(event => { + window.addEventListener('scroll', debounce(event => { translate.seek(translate.duration * (window.scrollY / 1000)) }), 50) }