mirror of
https://github.com/LBRYFoundation/lbryorg.git
synced 2025-08-23 20:47:23 +00:00
fix: never copy code, not even your own code
This commit is contained in:
parent
1595031250
commit
c49c681931
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ const parallaxOffset = 20;
|
|||
$(window).on('scroll', () => {
|
||||
const movedBy = window.scrollY;
|
||||
|
||||
if ($(window).height() - elem.getBoundingClientRect().top >= parallaxOffset) {
|
||||
if ($(window).height() - parallax.getBoundingClientRect().top >= parallaxOffset) {
|
||||
$('.parallax').each((i, parallax) => {
|
||||
$(parallax).find('.parallax-layer').each((i, layer) => {
|
||||
const depth = $(layer).attr('data-depth-factor') || depthFactor; // dynamically get depthFactor
|
||||
|
|
Loading…
Add table
Reference in a new issue