It can not be done with any option. You would need to modify the plugin for it, but not the function you are pointing out. That way the user would be redirected to the given section and slide. You need to make the movement in the background without the user's knowledge.
You would need to make the function scrollSlider
public and call it from your own code (onLeave
or afterLoad
callbacks)
To make it public and therefore accesible from the initialization or any other external code, you would need to change the header of the function from this:
function scrollSlider(section, slide) {
if (typeof slide != 'undefined') {
var slides = section.find('.slides');
var destiny = slides.find('[data-anchor="' + slide + '"]');
if (!destiny.length) {
destiny = slides.find('.slide').eq(slide);
}
landscapeScroll(slides, destiny);
}
}
To this:
$.fn.fullpage.scrollSlider= function(section, slide){
/// .... the same code as in the old function
}
Then, onLeave
of the current section, you can call that function for that same section giving the value of 0
for the slide
.