Skip to content

feat: add useIntersectionObserver #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 26, 2020
Merged

feat: add useIntersectionObserver #115

merged 3 commits into from
Aug 26, 2020

Conversation

Coiven
Copy link
Contributor

@Coiven Coiven commented Aug 26, 2020

新增 IntersectionObserver Hook
用于检测 【目标元素】 于 【根元素】 内是否曝光

用途:图片懒加载、商品曝光率检测

@antfu
Copy link
Member

antfu commented Aug 26, 2020

Looks cool, but do you mean something like this https://vueuse.js.org/?path=/story/sensors--useelementvisibility which is already existed in VueUse?

Oh, I see, this is a great enhancement, thanks. However, can you update a brief description of what those arguments do? Appreciated.

@Coiven
Copy link
Contributor Author

Coiven commented Aug 26, 2020

The things done, pls check again.👌

@antfu
Copy link
Member

antfu commented Aug 26, 2020

Well done. Thanks!

Copy link

pkg-pr-new bot commented Aug 1, 2025

Open in StackBlitz

@vueuse/components

npm i https://pkg.pr.new/@vueuse/components@115

@vueuse/core

npm i https://pkg.pr.new/@vueuse/core@115

@vueuse/electron

npm i https://pkg.pr.new/@vueuse/electron@115

@vueuse/firebase

npm i https://pkg.pr.new/@vueuse/firebase@115

@vueuse/integrations

npm i https://pkg.pr.new/@vueuse/integrations@115

@vueuse/math

npm i https://pkg.pr.new/@vueuse/math@115

@vueuse/metadata

npm i https://pkg.pr.new/@vueuse/metadata@115

@vueuse/nuxt

npm i https://pkg.pr.new/@vueuse/nuxt@115

@vueuse/router

npm i https://pkg.pr.new/@vueuse/router@115

@vueuse/rxjs

npm i https://pkg.pr.new/@vueuse/rxjs@115

@vueuse/shared

npm i https://pkg.pr.new/@vueuse/shared@115

commit: 9adcf85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants