在某些情况下如何完全禁用FullPage.js? [英] How can I fully disable FullPage.js under certain conditions?
本文介绍了在某些情况下如何完全禁用FullPage.js?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我当前正在使用fullPage.js作为信息面板.当用户单击信息按钮时,fullPage.js覆盖会显示在页面其余部分的顶部.我现在遇到的问题是,当信息按钮不处于活动状态时,我不希望将fullPage.js功能应用于页面的其余部分.
I'm currently using fullPage.js for an information panel. When the user clicks the info button, a fullPage.js overlay appears on top of the rest of the page. The issue I'm having now is that I don't want the fullPage.js functionality to be applied to the rest of page when the info button isn't active.
是否可以完全禁用所有fullPage.js功能?
Is there a way to fully disable all fullPage.js functionality?
谢谢!
推荐答案
您可以使用例如,只需将该功能添加到该按钮的click事件中即可.
Just add that function inside your click event for that button, for example.
这篇关于在某些情况下如何完全禁用FullPage.js?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文