Created
April 4, 2018 08:50
-
-
Save gabrielef/2e3487df89c1b715d60849e2c875c4f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
var multi = $('#multiscroll').multiscroll({ | |
scrollOverflow: true, | |
onLeave: function (index, nextIndex, direction) { | |
//after leaving section 2 | |
var fine = 3; | |
console.log(index, nextIndex, direction); | |
}, | |
afterLoad: function (anchorLink, index) { | |
//using index | |
if (index == '4') { | |
console.log("Section 4 ended loading"); | |
window.parent.$('body').css('overflow', 'visible'); | |
//window.parent.startApertura = true; | |
$('body').css('overflow', 'visible'); | |
} | |
} | |
}); | |
}); | |
AOS.init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment