Is there a way to turn stellar.js on and off in code? I've tried to call "stellar" method with different parameters but seems like it only works once:
$(document).ready(function() {
$.stellar({
verticalScrolling: true,
verticalOffset: 0,
});
$.stellar({
verticalScrolling: false, // is not turning scrolling off
verticalOffset: 0,
});
});
If you want to reload the plugin, reset it before calling initialization function.
Check the function code in stellar.js. If the options === 'destroy', plugin stellar is reset.
So your code could be as following: