Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fading effect only in some sections #4662

Open
RBPontoZ opened this issue Sep 25, 2024 · 3 comments
Open

fading effect only in some sections #4662

RBPontoZ opened this issue Sep 25, 2024 · 3 comments
Labels

Comments

@RBPontoZ
Copy link

Hello,

First of all, thank you very much for the plugin!

I'm considering using it for a website I'm developing but I need to know if it's possible to use fadding effect in just some sections. The page would have 7 or 8 sections but I wanted to include fadding effect only between 3 sections (section 3, 4 and 5 for example). The remaining sections would maintain the normal fullpage scroll.

Is this possible?

Thank you so much!

@alvarotrigo
Copy link
Owner

Is this possible?

Kind of.

You can activate and reactive the fading effect using the methods fullpage_api.fadingEffect.turnOn(); and fullpage_api.fadingEffect.turnOff().

You can probably do that using the beforeLeave callback so you can control if you deactivate the fading effect depending on the direction the user will move.

Give it a try and if you don't manage to do it you can get a refund. Just make sure you don't activate the extension for any domain before trying it out.

@alvarotrigo
Copy link
Owner

Sorry, correction.
You can only do it on the afterLoad callback.

@RBPontoZ
Copy link
Author

RBPontoZ commented Oct 1, 2024

Thank you so much!
I'll try it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants