From ed14d061544e51b8454f348a10a9c176727be28b Mon Sep 17 00:00:00 2001 From: HarshKhandeparkar Date: Mon, 8 Jun 2020 03:04:51 +0530 Subject: [PATCH] tweak depth factor --- lib/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/js/index.js b/lib/js/index.js index 458322e..396ae27 100644 --- a/lib/js/index.js +++ b/lib/js/index.js @@ -1,5 +1,5 @@ // Parallax -const depthFactor = 5; // Depth of the image wrt to the 0 z-index. 1 being at the same distance as the rest of the content and Infinity being as far away as possible. +const depthFactor = 3; // Depth of the image wrt to the 0 z-index. 1 being at the same distance as the rest of the content and Infinity being as far away as possible. $(window).on('scroll', () => { const movedBy = window.scrollY;