BlazorIntersectionObserver
BlazorIntersectionObserver copied to clipboard
This codes brings the observed div into view on load, not desired
Updated, part of the code was not shown in the first post.
First thank you for the great work,
I have 1 issue with the code usage:
Tried this:
<IntersectionObserve> @{var isIntersecting = context.IsIntersecting;} <div @ref="context.Ref.Current" class="wrap @(isIntersecting ? "wrapActive" : "")">
...
The issue is that it always brings the div into the view on load of the page! Do you know what is causing this or what can be the issue?
Regards!
Updated, part of the code was not shown earlier which I fixed, Don't know why it scrolls the page to the location where the observed item is.
Hi, could you provide a minimal working example for this please?