繁体   English   中英

fullpage.js活动类显示两个半部分

[英]fullpage.js active class show two half sections

嘿,我正在使用fullpage.js插件,希望我的页面从上一张幻灯片开始。 最后一张幻灯片的类处于活动状态,假定将侧面加载到特定的幻灯片上。 结果是页面显示具有活动幻灯片和上面的一半幻灯片。

有谁知道问题出在哪里吗?

http://itu.dk/people/cnos/diam/Eksamensprojekt%20kopi/journey.html

您在这里两次初始化fullPage.js ...

并且您应该在JavaScript样式之前添加CSS样式。

您应该只进行一次初始化:

//FULL PAGE CODE
$('#fullpage').fullpage({
    css3: true,
    navigation: true,
    navigationPosition: 'right',
    easing: "easeOutQuad",
    scrollOverflow: true,
    onLeave: slideLeave,
    paddingTop: '0px',
    verticalCentered: false,

    afterLoad: function(anchorLink, index){
        var loadedSection = $(this);
        $( "#ufoscroll" ).hide( 0 );
        $( "#ufopic" ).show( 0 );

        if(index == 9){
        $( "#makurtale" ).show( "" );
        }

        if(index == 10)
        $( ".solbillede" ).show( "" );
        $( "#ufoscroll" ).hide( 0 );
        $( "#ufopic" ).show( 0 );

    },

    onLeave: function(index, nextIndex, direction){
        var leavingSection = $(this);
        if(direction =='up'){
            $( "#ufoscroll" ).show( 0 );
            $( "#ufopic" ).hide( 0 );              
        }
    },
});

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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