Skip to content

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

@KKacer

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!

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