diff options
author | alattalatta <urty5656@gmail.com> | 2021-11-28 21:47:30 +0900 |
---|---|---|
committer | hochan Lee <hochan049@gmail.com> | 2021-12-13 00:45:04 +0900 |
commit | 321e9f39e87510a6317a1f9c5c993523294da4a5 (patch) | |
tree | b69a43762f24b23d00b113b0959a4ca2de5fdad7 /files/ko/web/api/intersectionobserver/unobserve/index.md | |
parent | bd6329150011e7af74cbd5bf344d5e1a86935060 (diff) | |
download | translated-content-321e9f39e87510a6317a1f9c5c993523294da4a5.tar.gz translated-content-321e9f39e87510a6317a1f9c5c993523294da4a5.tar.bz2 translated-content-321e9f39e87510a6317a1f9c5c993523294da4a5.zip |
Rewrite and add IntersectionObserver methods
Diffstat (limited to 'files/ko/web/api/intersectionobserver/unobserve/index.md')
-rw-r--r-- | files/ko/web/api/intersectionobserver/unobserve/index.md | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/files/ko/web/api/intersectionobserver/unobserve/index.md b/files/ko/web/api/intersectionobserver/unobserve/index.md new file mode 100644 index 0000000000..736c894543 --- /dev/null +++ b/files/ko/web/api/intersectionobserver/unobserve/index.md @@ -0,0 +1,58 @@ +--- +title: IntersectionObserver.unobserve() +slug: Web/API/IntersectionObserver/unobserve +tags: + - API + - Intersection Observer + - Intersection Observer API + - IntersectionObserver + - Method + - Reference + - unobserve +browser-compat: api.IntersectionObserver.unobserve +translation_of: Web/API/IntersectionObserver/unobserve +--- +{{APIRef("Intersection Observer API")}} + +{{domxref("IntersectionObserver")}}의 **`unobserve()`** 메서드는 특정 요소에 대한 가시성 변화 주시를 중단합니다. + +## 구문 + +```js +IntersectionObserver.unobserve(target); +``` + +### 매개변수 + +- `target` + - : 주시를 중단할 {{domxref("Element")}}입니다. 지정한 요소를 이미 주시하고 있지 않을 때는 아무것도 수행하지 않으며 예외도 발생하지 않습니다. + +### 반환 값 + +`undefined`. + +## 예제 + +아래 코드는 감지기를 생성한 후 요소를 주시하고, 다시 주시를 해제하는 예제입니다. + +```js +var observer = new IntersectionObserver(callback); +observer.observe(document.getElementById("elementToObserve")); + +/* ... */ + +observer.unobserve(document.getElementById("elementToObserve")); +``` + +## 명세 + +{{Specifications}} + +## 브라우저 호환성 + +{{Compat}} + +## 같이 보기 + +- [Intersection Observer API](/ko/docs/Web/API/Intersection_Observer_API) +- {{domxref("IntersectionObserver.observe()")}} |