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

Confused by out of view vs inview priority #75

Open
AlbyGNinja opened this issue Dec 14, 2018 · 0 comments
Open

Confused by out of view vs inview priority #75

AlbyGNinja opened this issue Dec 14, 2018 · 0 comments

Comments

@AlbyGNinja
Copy link

I'm using inview with fullpage.js and i'm getting into this strange issue sliding left and right:
Basically, when i'm in a specific section i wanna show the .fp-controlArrow only in the first slide, then hide them. So i assigned .hideFpNav to all slides i won't show those arrows, here is the code:
$('.hideFpNav').on('inview', function(event, isInView) { if (!isInView) { $(".fp-controlArrow").removeClass("d-none"); console.log("out of view - isInView value: ",isInView); } else { $(".fp-controlArrow").addClass("d-none"); console.log("in view - isInView value: ",isInView); } });
I attach a little gif to explain this behaviour, hope it's clear.
(In the video you'll see 3 slides:
1st: must see arrows
2nd: must hide arrows
3rd: must hide arrows )
issue

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

No branches or pull requests

1 participant