Skip to content

Confused by out of view vs inview priority #75

@AlbyGNinja

Description

@AlbyGNinja

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions