Skip to content

Instantly share code, notes, and snippets.

@gabrielef
Created April 4, 2018 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielef/2e3487df89c1b715d60849e2c875c4f1 to your computer and use it in GitHub Desktop.
Save gabrielef/2e3487df89c1b715d60849e2c875c4f1 to your computer and use it in GitHub Desktop.
$(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