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

intersect with v-if not working properly #31

Open
dwagner320 opened this issue Jul 25, 2022 · 0 comments
Open

intersect with v-if not working properly #31

dwagner320 opened this issue Jul 25, 2022 · 0 comments

Comments

@dwagner320
Copy link

When I use
<intersect v-if="activated == true" @enter=" addImages();" > <div class="h-1 w-full border"></div> </intersect>

The intersect appears in the dom when the condition is met, but the intersect is not doing any method anymore when I scroll to it.
If I remove the if then I have the problem that with a big screen when the page loads the intersect gets activated a couple of times while loading.

How to make the intersect work with v-if? what is the reason that its not working?

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