fix: change ready to DOMContentLoaded

This commit is contained in:
Harsh Khandeparkar 2020-06-29 12:00:10 +05:30 committed by GitHub
parent a9b70fbe50
commit 71084a5fe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;