Callbacks let you pick up on events, i.e.: which slide is currently being viewed. For instance, it comes in handy to display animations at the right moment! Below are the callbacks available to each family of functions:

fullPage

  • input$fp_origin: origin slide
  • input$fp_destination: destination slide
  • input$fp_direction: scroll direction

pagePiling & multiScroll

  • input$fp_anchor: slide anchor
  • input$fp_index: slide index

Demo: