Just a jQuery scroll handler
$ npm install disturber
$(document).disturber({
scenes: [{selector: '#slide1', action: {css:'fade-in'}},
{selector: '.general-slide', action: {css:'fade-in'}},
{selector: '#slide2', action: {css:'fade-in',
js: function() {$.fn.disturb()}
}
}]
mobile: true
});
In some cases (loading of external resources etc) may be needed to wrap the code in
$( window ).load(function() {
// Init disturber
});