tweak depth factor

This commit is contained in:
HarshKhandeparkar 2020-06-08 03:04:51 +05:30
parent 6cd83ec786
commit ed14d06154

View file

@ -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;