How to reach the scroll with Fullpage.js?

Good time of day.
This problem. On the website connected to a plugin fullpage.js to scrolling was in sections on the screen. By about the third section, there is a need to change the logo(say from black to white). If the plugin is disabled, to reach out to that using a scroll is obtained, if the plugin is connected, nothing happens, the function is generally not fulfilled, even the console in it as if it locks the scrolling. Can someone tell any sensible idea how to do it?
March 19th 20 at 08:38
2 answers
March 19th 20 at 08:40
$(function() {
 onLeave: function(index, nextIndex, direction) {
 if (nextIndex == 3) {
 // If the switch to the 3rd section of the action
 } else {
 // Otherwise..
Thank you very much! Exactly what you need..a bit podeseni all works out.+1 karma.. - presley_Brekke69 commented on March 19th 20 at 08:43
March 19th 20 at 08:42
Hello! Hang on the block of the third section of the event onload="name()" and initialize the function which changes the style of this logo:
For example:

<section id="section_three" class="section_three" onload="loadSectionThree()">
the content

Now The JavaScript:

loadSectionThree function() {
 var section = document.getElementById('section_three'); = 'url("path to the new logo")';
The idea is good, will check on the matter..
Although the question then arises - in this section it will work, will change, but when changing the section he has to return to its original can it be? - presley_Brekke69 commented on March 19th 20 at 08:45

Find more questions by tags JavaScript