Skip to content

Feature request: Infinity rootMargin #251

@Jessidhia

Description

@Jessidhia

This sounds silly at first glance, but the use case is to have an Infinity rootMargin in a specific direction, e.g. Infinity 0 0 0.

The use case, in this case, is to trigger animations as the user scrolls down to them, but not to trigger them when the user scrolls up -- the animations should be in the "already performed" state in that case. The current workaround is to give a very large amount of pixels as the top margin, but it's not as universal as having some potentially optimizable way of always considering elements off a specific direction as intersecting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions