I searched a lot for this but no solution yet. Here is my code.
<a href="#second" onclick="return slide();">second </a>
javscript:
function slide()
{
//do something
//There are slides on #second. I am expecting sliding should start before
//#second visible in viewport but right now #second is visible and then it starts sliding.
$.fn.fullpage.moveTo(section1, 0);
return true;
}
I am using fullpage.js for sliding the slides.
When I click on second I am expecting function to return value and then href to execute. Is it possible or not?
If not is there any solution for it?