fullPage.js icon indicating copy to clipboard operation
fullPage.js copied to clipboard

Display only on screen under 992px ?

Open DSergioD opened this issue 3 years ago • 2 comments

How to disable breakpoint screens, let's say I want just under 992px to show and desktop disable fullPage Effect ? Is this possible ?

DSergioD avatar Apr 16 '21 11:04 DSergioD

Usually, it's done the other way around. You disable it for mobile devices. This is done using the responsiveWidth option.

However, it would be a nice addition to allow the opposite too, disable it on desktops :) I'll mark this topic as a possible enhancement for a future version 👍

alvarotrigo avatar Apr 16 '21 11:04 alvarotrigo

@DSergioD if you're still facing this issue and need to get it done, you can manually do it using Fullpage.js's destroy function. Using vanilla JS you can check for the browser's viewport width, and then enable/destroy fullpage depending on that. Have a look at the docs for the destroy function.

https://github.com/alvarotrigo/fullPage.js#destroytype

BossElijah avatar Aug 26 '22 14:08 BossElijah