mirror of
https://github.com/LBRYFoundation/lbryorg.git
synced 2025-08-23 20:47:23 +00:00
fix: change ready to DOMContentLoaded
This commit is contained in:
parent
a9b70fbe50
commit
71084a5fe7
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ const fadeOffset = -10;
|
|||
const fadeDuration = 500;
|
||||
const fadeDelay = 0;
|
||||
|
||||
$(document).on('scroll ready', () => {
|
||||
$(document).on('scroll DOMContentLoaded', () => {
|
||||
console.log('ready or scroll')
|
||||
$('.scroll-fade').each((i, elem) => {
|
||||
const offset = $(elem).attr('data-fade-offset') || fadeOffset;
|
||||
|
|
Loading…
Add table
Reference in a new issue