diff --git a/lib/js/index.js b/lib/js/index.js index da5677e..0687a91 100644 --- a/lib/js/index.js +++ b/lib/js/index.js @@ -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;