If what you are trying it so execute some code for each slide once the user reaches it, then you can do it using the afterLoad
or the onLeave
events.
Here you have a living example of this use: http://alvarotrigo.com/fullPage/examples/callbacks.html
Your initialization should look similar to:
$.fn.fullpage({
'afterLoad': function (anchorLink, index) {
//for section 2...
if (index == 2) {
//whatever
}
},
'onLeave': function (index, nextIndex, direction) {
//going from section 3 to 4
if (index == 3 && direction == 'down') {
//whatever
}
//going form section 3 to 2
else if (index == 3 && direction == 'up') {
//whatever
}
}
});
If what you want is to do something on the slides rather than on the sections, then you should use the even afterSlideLoad
.