Skip to content

Support rootMargin on intersectionObserver #13

Closed
@ScriptedAlchemy

Description

@ScriptedAlchemy

Some components can load in a janky fashion if they are hydrated when directly in view.

Id like to propose the ability to add a rootMargin, allowing a component to hydrate itself before a user is fully viewing it.

Use case:

  • carousels where additional computation is required after mounting
  • components that use fade-in effects or lazyloading images does not have a smooth experience
  • components that use intersection observer themselves

Reasoning

Would provide a better UX

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