mirror of
https://github.com/LBRYFoundation/lbryorg.git
synced 2025-08-23 20:47:23 +00:00
fix: check for scroll-fade elems on content load
This commit is contained in:
parent
50d824026d
commit
42a0db2cb6
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', () => {
|
||||
$(window).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