简体   繁体   中英

fullPage.js, scrollDelay not working

ScrollDelay will not work using the following code placed correctly. What am I doing wrong?

http://oskarvertetics.kaggteknik.se/portfolio/test2/

var scrollDelay = 500;

Also, can not seem to figure out what is wrong with the navigation on the right side and in the slides.

ScrollDelay will not work using the following code placed correctly. What am I doing wrong?

scrollDelay stop being used in fullPage.js since version 2.5.7 as a new technique to prevent double sliding was developed. In fact, you won't find any reference to it neither in the code nor in the docs.

Also, can not seem to figure out what is wrong with the navigation on the right side and in the slides.

Your are initializing the plugin multiple times...

<script type="text/javascript">
        $(document).ready(function() {
            $('#fullpage').fullpage({
                verticalCentered: false

            });
        });
    </script>
<script type="text/javascript">
        $(document).ready(function() {
            $('#fullpage').fullpage({
                sectionsColor: ['', '#F3F5F1', '#7BAABE', 'whitesmoke'],
                anchors: ['homepage', 'about', 'works', 'contact'],
                menu: '#menu',
                scrollingSpeed: 1000
            });

        });
    </script>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM