lukesnowden / FSVS

Full Screen Vertical Scroll
https://www.lukesnowden.co.uk/full-screen-vertical-scroll/
723 stars 145 forks source link

How can i set a function to run on a slide when getting on that slide? #40

Closed AurelDragut closed 8 years ago

AurelDragut commented 8 years ago

Hi,

is there any way i can set the code so that when i get to a slide to run the content from that slide? for example i have a video on slide 3 that i want to start playing automatically when i get to slide3 and to stop when get out of the slide3...

lukesnowden commented 8 years ago

https://github.com/lukesnowden/FSVS/blob/master/assets/js/bundle.js#L397

$.fn.fsvs({
    afterSlide : function( index ) {

   }
});