Skip to content

交叉观察者 IntersectionObserver 实现懒加载、吸顶、触底 #59

@yangmaoHu

Description

@yangmaoHu

原文

IntersectionObserver 翻译为 "交叉观察者"
监听目标元素跟指定父元素(用户可指定,默认为viewport)是否在发生交叉行为
简单理解就是监听目标元素是否进入或者离开了指定父元素的内部

image

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