I have such a situation that the site is divided into sections using the plugin fullPage.js (example: https://alvarotrigo.com/fullPage/ru/#page1 ), then when I go to the first section, the animation js starts. Please tell me how it is possible to make the js code start to appear only when the section is active?

    1 answer 1

    Use the onLeave onLeave as in the example https://alvarotrigo.com/fullPage/examples/apple.html or afterLoad in the example https://alvarotrigo.com/fullPage/examples/callbacks.html

    Also, each active slide has an active class. Animation can be tied to it.

    • Can't figure out how to use afterload? - Bogdan
    • one
      Thanks, already figured it out. Thank you for your help. - Bogdan