mirror of
https://github.com/LBRYFoundation/lbryorg.git
synced 2025-08-23 20:47:23 +00:00
fix: use document.onScroll and document.onReady
This commit is contained in:
parent
42a0db2cb6
commit
8c53de295c
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ const fadeOffset = 20;
|
|||
const fadeDuration = 500;
|
||||
const fadeDelay = 0;
|
||||
|
||||
$(window).on('scroll ready', () => {
|
||||
$(document).on('scroll ready', () => {
|
||||
$('.scroll-fade').each((i, elem) => {
|
||||
const offset = $(elem).attr('data-fade-offset') || fadeOffset;
|
||||
const duration = $(elem).attr('data-fade-duration') || fadeDuration;
|
||||
|
|
Loading…
Add table
Reference in a new issue