Skip to content

This codes brings the observed div into view on load, not desired #48

Description

@KKacer

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions