Is it possiblie to trigger useElementVisibility
once?
#4007
Closed
abdul-alhasany
started this conversation in
General
Replies: 2 comments
-
Maybe we can improve this, feel free to open an issue, happy to resolve it :) PR: #4577 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the PR. I had everything ready for the PR except the test, I could not figure it out. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It seems that
useElementVisibility
triggers every time the element appears in viewport regardless of how many times the user scrolls up or down the page.I think it is uesfull to add an option to trigger once. This is a common behaviour when animate elements on scroll.
I have looked through the documentation and code but I don't think this option exists.
Is there a way to do it? or is there another function that does this?
Beta Was this translation helpful? Give feedback.
All reactions