{"id":6509,"date":"2023-10-14T01:56:39","date_gmt":"2023-10-13T16:56:39","guid":{"rendered":"https:\/\/engineering.webstudio168.jp\/?p=6509"},"modified":"2024-07-08T15:01:53","modified_gmt":"2024-07-08T06:01:53","slug":"how-to-use-intersectionobserver","status":"publish","type":"post","link":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/","title":{"rendered":"\u753b\u9762\u306b\u8981\u7d20\u304c\u5165\u3063\u305f\u304b\u3092\u76e3\u8996\u3057\u305f\u3044\uff5eIntersection Observer API\u306e\u4f7f\u3044\u65b9\u3010JavaScript\u3011"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/#Intersection_Observer%E3%81%A8%E3%81%AF%E4%BD%95%E3%81%8B%EF%BC%9F\" >Intersection Observer\u3068\u306f\u4f55\u304b\uff1f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/#%E3%81%AA%E3%81%9CIntersection_Observer%E3%81%8C%E9%87%8D%E8%A6%81%E3%81%AA%E3%81%AE%E3%81%8B%EF%BC%9F\" >\u306a\u305cIntersection Observer\u304c\u91cd\u8981\u306a\u306e\u304b\uff1f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/#Intersection_Observer%E3%81%AE%E5%9F%BA%E6%9C%AC\" >Intersection Observer\u306e\u57fa\u672c<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/#Observer%E3%81%AE%E4%BD%9C%E6%88%90%E3%81%A8%E8%A6%81%E7%B4%A0%E3%81%B8%E3%81%AE%E5%89%B2%E3%82%8A%E5%BD%93%E3%81%A6%E3%81%8C%E9%87%8D%E8%A6%81\" >Observer\u306e\u4f5c\u6210\u3068\u8981\u7d20\u3078\u306e\u5272\u308a\u5f53\u3066\u304c\u91cd\u8981<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/#%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E9%9A%9B%E3%81%AB%E6%B0%97%E3%82%92%E4%BB%98%E3%81%91%E3%81%9F%E3%81%84%E3%81%93%E3%81%A8\" >\u4f7f\u7528\u3059\u308b\u969b\u306b\u6c17\u3092\u4ed8\u3051\u305f\u3044\u3053\u3068<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/#%E3%81%BE%E3%81%A8%E3%82%81\" >\u307e\u3068\u3081<\/a><\/li><\/ul><\/nav><\/div>\n\n<p class=\"wp-block-paragraph\">\u4ee5\u524d\u3001IE\u304c\u6d88\u6ec5\u3057\u3066\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u7684\u306b\u30e1\u30ea\u30c3\u30c8\u3092\u5f37\u304f\u611f\u3058\u308b\u65e8\u306e\u8a18\u4e8b\u3092\u63b2\u8f09\u3057\u307e\u3057\u305f\u3002\u300e<a href=\"https:\/\/engineering.webstudio168.jp\/blog\/internetexplorer-is-over\/\">IE\uff08InternetExplorer\uff09\u306e\u30b5\u30dd\u30fc\u30c8\u7d42\u4e86\u304b\u3089\u751f\u307e\u308c\u308b\u30e1\u30ea\u30c3\u30c85\u9078\uff01\uff5e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u89b3\u70b9\u304b\u3089JavaScript\u3092\u8003\u3048\u308b<\/a>\u300f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3060\u3051\u3067\u306f\u306a\u304f\u3001IE11\u3092\u7121\u8996\u3059\u308b\u3068\u304b\u306a\u308a\u52b9\u7387\u7684\u3067\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3082\u5411\u4e0a\u3059\u308b\u3082\u306e\u304c\u3042\u308b\u306e\u3067\u8ffd\u8a18\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u305d\u308c\u306f\u3001\u300c<code>Intersection Observer<\/code>\u300d\u306e\u5229\u7528\u3067\u3059\u3002\u4eca\u307e\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u30a4\u30d9\u30f3\u30c8\u3067\u8981\u7d20\u306eoffset\u3092\u53d6\u5f97\u3057\u3066\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u5024\u3068\u6bd4\u8f03\u3057\u3066\u2026\u2026\u30a6\u30f3\u30cc\u30f3\u30ab\u30f3\u30cc\u30f3\u3068\u3044\u3063\u305f\u3053\u3068\u3092\u4e00\u624b\u306b\u5f15\u304d\u53d6\u3063\u3066\u304f\u308c\u308b\u4fbf\u5229\u306a\u624b\u6cd5\u3067\u3059\u3002\u662f\u975e\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Intersection_Observer%E3%81%A8%E3%81%AF%E4%BD%95%E3%81%8B%EF%BC%9F\"><\/span>Intersection Observer\u3068\u306f\u4f55\u304b\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Intersection Observer<\/code>\u306f\u3001\u30a6\u30a7\u30d6\u958b\u767a\u306b\u304a\u3044\u3066\u8981\u7d20\u306e\u8868\u793a\u72b6\u614b\u3092\u52b9\u7387\u7684\u306b\u76e3\u8996\u3059\u308b\u305f\u3081\u306e\u30d6\u30e9\u30a6\u30b6\u6a19\u6e96\u306eAPI\u3067\u3059\u3002\u3053\u306eAPI\u306f\u3001<span class=\"marker-under-red\">\u7279\u5b9a\u306e\u8981\u7d20\u304c\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\uff08<strong>\u753b\u9762\u5185\u306e\u8868\u793a\u9818\u57df<\/strong>\uff09\u306b\u8868\u793a\u3055\u308c\u305f\u308a\u3001\u7279\u5b9a\u306e\u8981\u7d20\u3068\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u304c<strong>\u4ea4\u5dee<\/strong>\u3057\u305f\u308a\u3059\u308b\u72b6\u614b\u3092\u691c\u51fa\u3057\u307e\u3059<\/span>\u3002\u3053\u306e\u691c\u51fa\u7d50\u679c\u3092\u5143\u306b\u3001\u8981\u7d20\u306e\u8868\u793a\u3084\u975e\u8868\u793a\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3092\u5236\u5fa1\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f93\u6765\u3001\u8981\u7d20\u306e\u8868\u793a\u72b6\u614b\u3092\u76e3\u8996\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u30a4\u30d9\u30f3\u30c8\uff08<code>window.on('scroll'<\/code>&#8230;&#8230;\uff09\u306a\u3069\u3092\u4f7f\u7528\u3057\u3066\u624b\u52d5\u3067\u8a08\u7b97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u3001<code>Intersection Observer<\/code>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u81ea\u52d5\u5316\u3055\u308c\u3001<strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a<\/strong>\u3068<strong>\u30b3\u30fc\u30c9\u306e\u7c21\u7d20\u5316<\/strong>\u304c\u5b9f\u73fe\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Intersection Observer<\/code>\u306f\u3001\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3067\u69d8\u3005\u306a\u7528\u9014\u306b\u5229\u7528\u3055\u308c\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u3092\u5b9f\u73fe\u3057\u3001\u30da\u30fc\u30b8\u8aad\u307f\u8fbc\u307f\u6642\u9593\u3092\u77ed\u7e2e\u3055\u305b\u305f\u308a\u3001\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3057\u305f\u308a\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u306b\u5fdc\u3058\u3066\u8981\u7d20\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u30c8\u30ea\u30ac\u30fc\u3057\u305f\u308a\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%81%AA%E3%81%9CIntersection_Observer%E3%81%8C%E9%87%8D%E8%A6%81%E3%81%AA%E3%81%AE%E3%81%8B%EF%BC%9F\"><\/span>\u306a\u305cIntersection Observer\u304c\u91cd\u8981\u306a\u306e\u304b\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Intersection Observer<\/code>\u306f\u3001\u30a6\u30a7\u30d6\u958b\u767a\u306b\u304a\u3044\u3066\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3059\u4e3b\u8981\u306a\u6280\u8853\u306e\u4e00\u3064\u3067\u3059\u3002\u305d\u306e\u91cd\u8981\u6027\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6319\u3052\u3089\u308c\u307e\u3059\u3002\u203bIE11\u975e\u5bfe\u5fdc\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u307e\u3059<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a<\/strong>\uff1a\u30b9\u30af\u30ed\u30fc\u30eb\u30a4\u30d9\u30f3\u30c8\u306a\u3069\u306e\u5f93\u6765\u306e\u624b\u6cd5\u3068\u6bd4\u3079\u3066\u52b9\u7387\u7684\u3067\u3001<span class=\"marker-under-red\">\u30d6\u30e9\u30a6\u30b6\u306e\u8ca0\u8377\u3092\u8efd\u6e1b\u3057\u307e\u3059<\/span>\u3002\u8981\u7d20\u304c\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u306b\u8868\u793a\u3055\u308c\u308b\u304b\u3069\u3046\u304b\u3092\u81ea\u52d5\u7684\u306b\u691c\u51fa\u3059\u308b\u305f\u3081\u3001\u4e0d\u8981\u306a\u8a08\u7b97\u3084\u30ea\u30bd\u30fc\u30b9\u306e\u30ed\u30fc\u30c9\u3092\u907f\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u30da\u30fc\u30b8\u306e\u8aad\u307f\u8fbc\u307f\u901f\u5ea6\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30e6\u30fc\u30b6\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u306e\u5411\u4e0a<\/strong>: \u30e6\u30fc\u30b6\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u69d8\u3005\u306a\u6a5f\u80fd\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u753b\u50cf\u306e\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u30da\u30fc\u30b8\u306e\u521d\u671f\u8868\u793a\u304c\u901f\u304f\u306a\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u5f85\u305f\u3055\u308c\u308b\u3053\u3068\u306a\u304f\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u95b2\u89a7\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u306a\u3069\u306e\u65b0\u3057\u3044\u6a5f\u80fd<\/strong>: \u7121\u9650\u30b9\u30af\u30ed\u30fc\u30eb\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u30c8\u30ea\u30ac\u30fc\u3001\u8981\u7d20\u306e\u30d5\u30a7\u30fc\u30c9\u30a4\u30f3\u306a\u3069\u3001\u30ea\u30c3\u30c1\u306a\u30a6\u30a7\u30d6\u6a5f\u80fd\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3084\u30a2\u30d7\u30ea\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u6027\u304c\u5411\u4e0a\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u3088\u308a\u9b45\u529b\u7684\u306a\u4f53\u9a13\u3092\u63d0\u4f9b\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30af\u30ed\u30b9\u30d6\u30e9\u30a6\u30b6\u5bfe\u5fdc<\/strong>: \u4e3b\u8981\u306a\u30d6\u30e9\u30a6\u30b6\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u304a\u308a\uff08<span class=\"marker-under-red\">\u203bIE\u4ee5\u5916<\/span>\uff09\u3001\u30af\u30ed\u30b9\u30d6\u30e9\u30a6\u30b6\u306e\u4e92\u63db\u6027\u304c\u9ad8\u3044\u305f\u3081\u3001\u958b\u767a\u8005\u306f\u7570\u306a\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3084\u30d6\u30e9\u30a6\u30b6\u3067\u4e00\u8cab\u3057\u305f\u52d5\u4f5c\u3092\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Intersection_Observer%E3%81%AE%E5%9F%BA%E6%9C%AC\"><\/span>Intersection Observer\u306e\u57fa\u672c<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u3093\u306a\u4fbf\u5229\u306a<code>Intersection Observer<\/code>\u3067\u3059\u304c\u3001\u3069\u306e\u3088\u3046\u306b\u5229\u7528\u3059\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002\u57fa\u672c\u3068\u306a\u308b\u4f7f\u3044\u65b9\u3092\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Observer%E3%81%AE%E4%BD%9C%E6%88%90%E3%81%A8%E8%A6%81%E7%B4%A0%E3%81%B8%E3%81%AE%E5%89%B2%E3%82%8A%E5%BD%93%E3%81%A6%E3%81%8C%E9%87%8D%E8%A6%81\"><\/span>Observer\u306e\u4f5c\u6210\u3068\u8981\u7d20\u3078\u306e\u5272\u308a\u5f53\u3066\u304c\u91cd\u8981<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Intersection Observer<\/code>\u3092\u4f7f\u3046\u306b\u306f\u3001Observer\u3092\u4f5c\u6210\u3057\u3001\u8981\u7d20\u306b\u305d\u306eObserver\u3092\u5272\u308a\u5f53\u3066\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4e0b\u8a18\u306f\u51fa\u6765\u308b\u3060\u3051\u7c21\u7565\u7684\u306b\uff08\u5fc5\u8981\u6700\u5c0f\u9650\u306b\uff09\u5b9f\u88c5\u3059\u308b\u969b\u306e\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-file=\"IntersectionObserver.js\" data-lang=\"JavaScript\"><code>\/\/ \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\n\/\/ \u4ea4\u5dee\u60c5\u5831\u3092\u53d7\u3051\u53d6\u3063\u3066\u3001\u8981\u7d20\u306b.observed\u30af\u30e9\u30b9\u3092\u8ffd\u52a0\/\u524a\u9664\u3059\u308b\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002\nfunction handleIntersection(entries, observer) {\n  entries.forEach(entry =&gt; {\n    if (entry.isIntersecting) {\n      \/\/ \u8981\u7d20\u304c\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u306b\u8868\u793a\u3055\u308c\u305f\u3089\n      entry.target.classList.add(&#39;observed&#39;);\n    } else {\n      \/\/ \u8981\u7d20\u304c\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u304b\u3089\u5916\u308c\u305f\u3089\n      entry.target.classList.remove(&#39;observed&#39;);\n    }\n  });\n}\n\n\/\/ Observer\u306e\u4f5c\u6210\nconst options = {\n  root: null,  \/\/root\u306f\u30eb\u30fc\u30c8\u8981\u7d20\uff08null=\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\uff09\u3092\u6307\u5b9a\n  rootMargin: &#39;0px&#39;, \/\/rootMargin\u306f\u4ea4\u5dee\u5224\u5b9a\u306b\u4f59\u767d\u3092\u5229\u7528\u3059\u308b\u304b\uff08\u4f55px\u4f59\u767d\u3092\u6301\u305f\u305b\u308b\u304b\uff09\n  threshold: 0.5 \/\/ \u8981\u7d20\u304c\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u306e50%\u4ee5\u4e0a\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\n};\nconst observer = new IntersectionObserver(handleIntersection, options);\n\n\/\/ \u76e3\u8996\u5bfe\u8c61\u306e\u8981\u7d20\u3092\u6307\u5b9a\nconst targetElement = document.querySelector(&#39;.target-element&#39;);\nobserver.observe(targetElement);<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><code>IntersectionObserver<\/code>\u3092\u4f5c\u6210\u3057\u3001\u76e3\u8996\u5bfe\u8c61\u306e\u8981\u7d20\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u4e0a\u306e\u4f8b\u3067\u306f<code>.target-element<\/code>\u3068\u3044\u3046\u30af\u30e9\u30b9\u3092\u6301\u3064\u8981\u7d20\u3092\u76e3\u8996\u3057\u3066\u3044\u307e\u3059\u3002\u6307\u5b9a\u3057\u305f\u8981\u7d20\u304c\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u306b\u8868\u793a\u3055\u308c\u305f\u5834\u5408\u3001<code>isIntersecting<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u304c <code>true<\/code>\u306b\u306a\u308a\u3001\u30af\u30e9\u30b9\u306e\u4ed8\u4e0e\u304c\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">option\u306e<code>threshold<\/code>\u304c\u7d50\u69cb\u91cd\u8981\u306a\u306e\u3067\u88dc\u8db3\u3059\u308b\u3068\u3001\u6307\u5b9a\u51fa\u6765\u308b\u5024\u306f0\uff5e1\u3067\u3001\u4f8b\u3048\u30700.5\u3067\u3042\u308c\u3070\u8981\u7d20\u306e50%\u304c\u5bfe\u8c61\u306b\u5165\u3063\u305f\u3068\u304d\u306b\u5224\u5b9a\u3092true\u306b\u3059\u308b\u51e6\u7406\u304c\u8d77\u3053\u308a\u307e\u3059\u3002\u3067\u3059\u306e\u30670.1\u3067\u3042\u308c\u307010%\u30010.8\u3067\u3042\u308c\u307080%\u304c\u8981\u7d20\u3068\u91cd\u306a\u3063\u305f\u6642\u306b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u304c\u767a\u706b\u3059\u308b\u3088\u3046\u306b\u8abf\u6574\u51fa\u6765\u308b\u512a\u308c\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E9%9A%9B%E3%81%AB%E6%B0%97%E3%82%92%E4%BB%98%E3%81%91%E3%81%9F%E3%81%84%E3%81%93%E3%81%A8\"><\/span>\u4f7f\u7528\u3059\u308b\u969b\u306b\u6c17\u3092\u4ed8\u3051\u305f\u3044\u3053\u3068<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Intersection Observer<\/code>\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u70b9\u306b\u6ce8\u610f\u3057\u305f\u307b\u3046\u304c\u826f\u3044\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3078\u306e\u5f71\u97ff<\/strong>: \u76e3\u8996\u3059\u308b\u8981\u7d20\u304c\u591a\u6570\u3042\u308b\u5834\u5408\u306f\u3001\u591a\u304f\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u547c\u3073\u51fa\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5fc5\u8981\u306a\u8981\u7d20\u306e\u307f\u3092\u76e3\u8996\u3059\u308b\u3088\u3046\u306b\u5fc3\u304c\u3051\u307e\u3057\u3087\u3046\u3002<\/li>\n\n\n\n<li><strong>\u5bfe\u5fdc\u30d6\u30e9\u30a6\u30b6\u306e\u78ba\u8a8d<\/strong>: <code>IntersectionObserver<\/code>\u306f\u4e3b\u8981\u306a\u30d6\u30e9\u30a6\u30b6\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4e00\u90e8\u306e\u53e4\u3044\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<a href=\"https:\/\/caniuse.com\/?search=IntersectionObserver\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">caniuse<\/a>\u306a\u3069\u3067\u4e8b\u524d\u306b\u5bfe\u5fdc\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n\n\n<li><strong>\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u306e\u52b9\u7387<\/strong>: \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u5185\u3067\u306e\u51e6\u7406\u306f\u8efd\u91cf\u3067\u9ad8\u901f\u3067\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002\u91cd\u3044\u51e6\u7406\u3092\u884c\u3046\u3068\u3001\u30b9\u30af\u30ed\u30fc\u30eb\u306e\u6ed1\u3089\u304b\u3055\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u5fc5\u8981\u306a\u51e6\u7406\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u307e\u3057\u3087\u3046\u3002<\/li>\n\n\n\n<li><strong>\u76e3\u8996\u306e\u89e3\u9664<\/strong>: \u8981\u7d20\u304c\u4e0d\u8981\u306b\u306a\u3063\u305f\u5834\u5408\u3001<code>unobserve<\/code> \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u76e3\u8996\u3092\u89e3\u9664\u3057\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u6d6a\u8cbb\u3092\u9632\u304e\u307e\u3057\u3087\u3046\u3002<span class=\"marker-under-red\">\u8981\u7d20\u304cDOM\u304b\u3089\u524a\u9664\u3055\u308c\u308b\u3068\u304d\u306b\u3082\u76e3\u8996\u3092\u89e3\u9664\u3059\u308b\u3053\u3068\u304c\u91cd\u8981<\/span>\u3067\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%81%BE%E3%81%A8%E3%82%81\"><\/span>\u307e\u3068\u3081<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Intersection Observer<\/code>\u306f\u975e\u5e38\u306b\u5f37\u529b\u306a\u6b66\u5668\u306b\u306a\u308a\u5f97\u307e\u3059\u3002JavaScript\u3067\u5f93\u6765\u884c\u3063\u3066\u304d\u305f\u9762\u5012\u306a\u30b9\u30af\u30ed\u30fc\u30eb\u30a4\u30d9\u30f3\u30c8\u51e6\u7406\u3092\u7c21\u6f54\u306b\u52b9\u7387\u3088\u304f\u884c\u3063\u3066\u304f\u308c\u308b\u306e\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u7684\u306b\u3082\u904b\u7528\u7684\u306b\u3082\u30e1\u30ea\u30c3\u30c8\u304c\u5927\u304d\u3044\u3067\u3059\u3002\u305f\u3060\u3001IE\u3078\u306e\u5bfe\u5fdc\u304c\u5fc5\u8981\u306a\u5834\u5408\u306b\u306f\u4f7f\u3048\u307e\u305b\u3093\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u306e\u51e6\u7406\u306e\u8efd\u91cf\u5316\u306a\u3069\u306b\u3082\u6ce8\u610f\u3057\u3066\u3001\u51fa\u6765\u308b\u9650\u308a\u30af\u30e9\u30b9\u306e\u4ed8\u4e0e\u306b\u7559\u3081\u308b\u7b49\u306e\u6700\u5c0f\u9650\u306e\u51e6\u7406\u306b\u3057\u305f\u65b9\u304c\u826f\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u30ac\u30af\u30ac\u30af\u3057\u305f\u308a\u3059\u308b\u5834\u5408\u306b\u306f\u76e3\u8996\u306e\u5bfe\u8c61\u304c\u9069\u5207\u304b\u3069\u3046\u304b\u3084\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u304c\u91cd\u3059\u304e\u306a\u3044\u304b\u3092\u898b\u76f4\u3059\u3068\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u3001IE\u304c\u6d88\u6ec5\u3057\u3066\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u7684\u306b\u30e1\u30ea\u30c3\u30c8\u3092\u5f37\u304f\u611f\u3058\u308b\u65e8\u306e\u8a18\u4e8b\u3092\u63b2\u8f09\u3057\u307e\u3057\u305f\u3002\u300eIE\uff08InternetExplorer\uff09\u306e\u30b5\u30dd\u30fc\u30c8\u7d42\u4e86\u304b\u3089\u751f\u307e\u308c\u308b\u30e1\u30ea\u30c3\u30c85\u9078\uff01\uff5e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u89b3\u70b9\u304b\u3089JavaS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6540,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":[],"rop_publish_now_history":[],"rop_publish_now_status":"pending","_themeisle_gutenberg_block_has_review":false,"sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"common","vkexunit_cta_each_option":"","footnotes":""},"categories":[55],"tags":[8,39,48],"class_list":["post-6509","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-javascript","tag-39","tag-48"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u753b\u9762\u306b\u8981\u7d20\u304c\u5165\u3063\u305f\u304b\u3092\u76e3\u8996\u3057\u305f\u3044\uff5eIntersection Observer API\u306e\u4f7f\u3044\u65b9\u3010JavaScript\u3011 | QooTechWEB-\u958b\u767a\u30ed\u30b0\u30fb\u5b9f\u52d9\u8a18\u9332\u30d6\u30ed\u30b0<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u753b\u9762\u306b\u8981\u7d20\u304c\u5165\u3063\u305f\u304b\u3092\u76e3\u8996\u3057\u305f\u3044\uff5eIntersection Observer API\u306e\u4f7f\u3044\u65b9\u3010JavaScript\u3011 | QooTechWEB-\u958b\u767a\u30ed\u30b0\u30fb\u5b9f\u52d9\u8a18\u9332\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u4ee5\u524d\u3001IE\u304c\u6d88\u6ec5\u3057\u3066\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u7684\u306b\u30e1\u30ea\u30c3\u30c8\u3092\u5f37\u304f\u611f\u3058\u308b\u65e8\u306e\u8a18\u4e8b\u3092\u63b2\u8f09\u3057\u307e\u3057\u305f\u3002\u300eIE\uff08InternetExplorer\uff09\u306e\u30b5\u30dd\u30fc\u30c8\u7d42\u4e86\u304b\u3089\u751f\u307e\u308c\u308b\u30e1\u30ea\u30c3\u30c85\u9078\uff01\uff5e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u89b3\u70b9\u304b\u3089JavaS [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/\" \/>\n<meta property=\"og:site_name\" content=\"QooTechWEB-\u958b\u767a\u30ed\u30b0\u30fb\u5b9f\u52d9\u8a18\u9332\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/kenichi.yoshimura.735\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/kenichi.yoshimura.735\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-13T16:56:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-08T06:01:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2023\/10\/pexels-stacey-koenitz-r-3767027.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2110\" \/>\n\t<meta property=\"og:image:height\" content=\"1407\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u559c\u591a\u5ddd\u8ce2\u4e00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u559c\u591a\u5ddd\u8ce2\u4e00\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/how-to-use-intersectionobserver\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/how-to-use-intersectionobserver\\\/\"},\"author\":{\"name\":\"\u559c\u591a\u5ddd\u8ce2\u4e00\",\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/#\\\/schema\\\/person\\\/6d312dfa5e9a00aa7a3575e6dec37ddb\"},\"headline\":\"\u753b\u9762\u306b\u8981\u7d20\u304c\u5165\u3063\u305f\u304b\u3092\u76e3\u8996\u3057\u305f\u3044\uff5eIntersection Observer API\u306e\u4f7f\u3044\u65b9\u3010JavaScript\u3011\",\"datePublished\":\"2023-10-13T16:56:39+00:00\",\"dateModified\":\"2024-07-08T06:01:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/how-to-use-intersectionobserver\\\/\"},\"wordCount\":29,\"publisher\":{\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/#\\\/schema\\\/person\\\/6d312dfa5e9a00aa7a3575e6dec37ddb\"},\"image\":{\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/how-to-use-intersectionobserver\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/pexels-stacey-koenitz-r-3767027.jpg\",\"keywords\":[\"JavaScript\",\"\u52b9\u7387\u5316\",\"\u6587\u6cd5\"],\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/how-to-use-intersectionobserver\\\/\",\"url\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/how-to-use-intersectionobserver\\\/\",\"name\":\"\u753b\u9762\u306b\u8981\u7d20\u304c\u5165\u3063\u305f\u304b\u3092\u76e3\u8996\u3057\u305f\u3044\uff5eIntersection Observer API\u306e\u4f7f\u3044\u65b9\u3010JavaScript\u3011 | QooTechWEB-\u958b\u767a\u30ed\u30b0\u30fb\u5b9f\u52d9\u8a18\u9332\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/how-to-use-intersectionobserver\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/how-to-use-intersectionobserver\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/pexels-stacey-koenitz-r-3767027.jpg\",\"datePublished\":\"2023-10-13T16:56:39+00:00\",\"dateModified\":\"2024-07-08T06:01:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/how-to-use-intersectionobserver\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/how-to-use-intersectionobserver\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/how-to-use-intersectionobserver\\\/#primaryimage\",\"url\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/pexels-stacey-koenitz-r-3767027.jpg\",\"contentUrl\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/pexels-stacey-koenitz-r-3767027.jpg\",\"width\":2110,\"height\":1407},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/how-to-use-intersectionobserver\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"QooTechWEB\",\"item\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u753b\u9762\u306b\u8981\u7d20\u304c\u5165\u3063\u305f\u304b\u3092\u76e3\u8996\u3057\u305f\u3044\uff5eIntersection Observer API\u306e\u4f7f\u3044\u65b9\u3010JavaScript\u3011\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/\",\"name\":\"QooTechWEB\",\"description\":\"\u73fe\u5f79\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u304cJavaScript\u3092\u4e2d\u5fc3\u306bWeb\u958b\u767a\u306b\u4f7f\u3048\u308b\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u307e\u3059\uff01\u203b\u30b5\u30a4\u30c8\u5185\u306b\u30a2\u30d5\u30a3\u30ea\u30a8\u30a4\u30c8\u3092\u542b\u307f\u307e\u3059\",\"publisher\":{\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/#\\\/schema\\\/person\\\/6d312dfa5e9a00aa7a3575e6dec37ddb\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/#\\\/schema\\\/person\\\/6d312dfa5e9a00aa7a3575e6dec37ddb\",\"name\":\"\u559c\u591a\u5ddd\u8ce2\u4e00\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/prof.png\",\"url\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/prof.png\",\"contentUrl\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/prof.png\",\"width\":514,\"height\":514,\"caption\":\"\u559c\u591a\u5ddd\u8ce2\u4e00\"},\"logo\":{\"@id\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/prof.png\"},\"description\":\"\u65e9\u7a32\u7530\u5927\u5b66\u7b2c\u4e00\u6587\u5b66\u90e8\u5352\u696d\u5f8c\u3001JAVA\u3067\u91d1\u878d\u7cfb\u30b7\u30b9\u30c6\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u306a\u308b\u3002\u75d9\u6027\u659c\u9838\uff08\u3051\u3044\u305b\u3044\u3057\u3083\u3051\u3044\uff09\u3068\u3044\u3046\u5947\u75c5\u306b\u304b\u304b\u308a\u3001\u9996\u304c\u66f2\u304c\u3063\u305f\u3063\u307e\u307e\u306e\u751f\u6d3b\u309210\u5e74\u4ee5\u4e0a\u7d4c\u9a13\u3002\u30d7\u30fc\u30eb\u306b\u901a\u3044\u81ea\u529b\u3067\u76f4\u3057\u3001\u4eca\u306f\u307b\u307c\u5b8c\u6cbb\u3002 \u305d\u3093\u306a\u3053\u3068\u3082\u3042\u3063\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u304b\u3089\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u8ee2\u8eab\u3057\u3001\u73fe\u5728\u306fWEB\u306e\u4e16\u754c\u3067\u751f\u6d3b\u3002 \u696d\u52d9\u3067\u5229\u7528\u3057\u305f\u8a00\u8a9e\u306f \u30fbJAVA\uff083\u5e74\u7a0b\u5ea6\uff09 \u30fbPHP\uff085\u5e74\u7a0b\u5ea6\uff09 \u30fbPython\uff081\u5e74\uff09 \u30fbHTML\uff0815\u5e74\uff09\u30fbCSS\uff0815\u5e74\uff09\u30fbJavaScript\uff0815\u5e74\uff09\u30fbAppScript\uff081\u5e74\uff09 \u597d\u304d\u306a\u3082\u306e\u306fJavaScript\u3002\",\"sameAs\":[\"https:\\\/\\\/engineering.webstudio168.jp\",\"https:\\\/\\\/www.facebook.com\\\/kenichi.yoshimura.735\\\/\",\"https:\\\/\\\/www.instagram.com\\\/qoo_sphynx\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/--20a9a4190\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCSZ3BHtlV0CqU296Y5lXoXw\"],\"url\":\"https:\\\/\\\/engineering.webstudio168.jp\\\/blog\\\/author\\\/ichi0726\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u753b\u9762\u306b\u8981\u7d20\u304c\u5165\u3063\u305f\u304b\u3092\u76e3\u8996\u3057\u305f\u3044\uff5eIntersection Observer API\u306e\u4f7f\u3044\u65b9\u3010JavaScript\u3011 | QooTechWEB-\u958b\u767a\u30ed\u30b0\u30fb\u5b9f\u52d9\u8a18\u9332\u30d6\u30ed\u30b0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/","og_locale":"ja_JP","og_type":"article","og_title":"\u753b\u9762\u306b\u8981\u7d20\u304c\u5165\u3063\u305f\u304b\u3092\u76e3\u8996\u3057\u305f\u3044\uff5eIntersection Observer API\u306e\u4f7f\u3044\u65b9\u3010JavaScript\u3011 | QooTechWEB-\u958b\u767a\u30ed\u30b0\u30fb\u5b9f\u52d9\u8a18\u9332\u30d6\u30ed\u30b0","og_description":"\u4ee5\u524d\u3001IE\u304c\u6d88\u6ec5\u3057\u3066\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u7684\u306b\u30e1\u30ea\u30c3\u30c8\u3092\u5f37\u304f\u611f\u3058\u308b\u65e8\u306e\u8a18\u4e8b\u3092\u63b2\u8f09\u3057\u307e\u3057\u305f\u3002\u300eIE\uff08InternetExplorer\uff09\u306e\u30b5\u30dd\u30fc\u30c8\u7d42\u4e86\u304b\u3089\u751f\u307e\u308c\u308b\u30e1\u30ea\u30c3\u30c85\u9078\uff01\uff5e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u89b3\u70b9\u304b\u3089JavaS [&hellip;]","og_url":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/","og_site_name":"QooTechWEB-\u958b\u767a\u30ed\u30b0\u30fb\u5b9f\u52d9\u8a18\u9332\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/kenichi.yoshimura.735\/","article_author":"https:\/\/www.facebook.com\/kenichi.yoshimura.735\/","article_published_time":"2023-10-13T16:56:39+00:00","article_modified_time":"2024-07-08T06:01:53+00:00","og_image":[{"width":2110,"height":1407,"url":"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2023\/10\/pexels-stacey-koenitz-r-3767027.jpg","type":"image\/jpeg"}],"author":"\u559c\u591a\u5ddd\u8ce2\u4e00","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u559c\u591a\u5ddd\u8ce2\u4e00","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/#article","isPartOf":{"@id":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/"},"author":{"name":"\u559c\u591a\u5ddd\u8ce2\u4e00","@id":"https:\/\/engineering.webstudio168.jp\/blog\/#\/schema\/person\/6d312dfa5e9a00aa7a3575e6dec37ddb"},"headline":"\u753b\u9762\u306b\u8981\u7d20\u304c\u5165\u3063\u305f\u304b\u3092\u76e3\u8996\u3057\u305f\u3044\uff5eIntersection Observer API\u306e\u4f7f\u3044\u65b9\u3010JavaScript\u3011","datePublished":"2023-10-13T16:56:39+00:00","dateModified":"2024-07-08T06:01:53+00:00","mainEntityOfPage":{"@id":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/"},"wordCount":29,"publisher":{"@id":"https:\/\/engineering.webstudio168.jp\/blog\/#\/schema\/person\/6d312dfa5e9a00aa7a3575e6dec37ddb"},"image":{"@id":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/#primaryimage"},"thumbnailUrl":"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2023\/10\/pexels-stacey-koenitz-r-3767027.jpg","keywords":["JavaScript","\u52b9\u7387\u5316","\u6587\u6cd5"],"articleSection":["JavaScript"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/","url":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/","name":"\u753b\u9762\u306b\u8981\u7d20\u304c\u5165\u3063\u305f\u304b\u3092\u76e3\u8996\u3057\u305f\u3044\uff5eIntersection Observer API\u306e\u4f7f\u3044\u65b9\u3010JavaScript\u3011 | QooTechWEB-\u958b\u767a\u30ed\u30b0\u30fb\u5b9f\u52d9\u8a18\u9332\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/engineering.webstudio168.jp\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/#primaryimage"},"image":{"@id":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/#primaryimage"},"thumbnailUrl":"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2023\/10\/pexels-stacey-koenitz-r-3767027.jpg","datePublished":"2023-10-13T16:56:39+00:00","dateModified":"2024-07-08T06:01:53+00:00","breadcrumb":{"@id":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/#primaryimage","url":"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2023\/10\/pexels-stacey-koenitz-r-3767027.jpg","contentUrl":"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2023\/10\/pexels-stacey-koenitz-r-3767027.jpg","width":2110,"height":1407},{"@type":"BreadcrumbList","@id":"https:\/\/engineering.webstudio168.jp\/blog\/how-to-use-intersectionobserver\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"QooTechWEB","item":"https:\/\/engineering.webstudio168.jp\/blog\/"},{"@type":"ListItem","position":2,"name":"\u753b\u9762\u306b\u8981\u7d20\u304c\u5165\u3063\u305f\u304b\u3092\u76e3\u8996\u3057\u305f\u3044\uff5eIntersection Observer API\u306e\u4f7f\u3044\u65b9\u3010JavaScript\u3011"}]},{"@type":"WebSite","@id":"https:\/\/engineering.webstudio168.jp\/blog\/#website","url":"https:\/\/engineering.webstudio168.jp\/blog\/","name":"QooTechWEB","description":"\u73fe\u5f79\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u304cJavaScript\u3092\u4e2d\u5fc3\u306bWeb\u958b\u767a\u306b\u4f7f\u3048\u308b\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u307e\u3059\uff01\u203b\u30b5\u30a4\u30c8\u5185\u306b\u30a2\u30d5\u30a3\u30ea\u30a8\u30a4\u30c8\u3092\u542b\u307f\u307e\u3059","publisher":{"@id":"https:\/\/engineering.webstudio168.jp\/blog\/#\/schema\/person\/6d312dfa5e9a00aa7a3575e6dec37ddb"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/engineering.webstudio168.jp\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":["Person","Organization"],"@id":"https:\/\/engineering.webstudio168.jp\/blog\/#\/schema\/person\/6d312dfa5e9a00aa7a3575e6dec37ddb","name":"\u559c\u591a\u5ddd\u8ce2\u4e00","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/prof.png","url":"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/prof.png","contentUrl":"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/prof.png","width":514,"height":514,"caption":"\u559c\u591a\u5ddd\u8ce2\u4e00"},"logo":{"@id":"https:\/\/engineering.webstudio168.jp\/blog\/wp-content\/uploads\/2022\/02\/prof.png"},"description":"\u65e9\u7a32\u7530\u5927\u5b66\u7b2c\u4e00\u6587\u5b66\u90e8\u5352\u696d\u5f8c\u3001JAVA\u3067\u91d1\u878d\u7cfb\u30b7\u30b9\u30c6\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u306a\u308b\u3002\u75d9\u6027\u659c\u9838\uff08\u3051\u3044\u305b\u3044\u3057\u3083\u3051\u3044\uff09\u3068\u3044\u3046\u5947\u75c5\u306b\u304b\u304b\u308a\u3001\u9996\u304c\u66f2\u304c\u3063\u305f\u3063\u307e\u307e\u306e\u751f\u6d3b\u309210\u5e74\u4ee5\u4e0a\u7d4c\u9a13\u3002\u30d7\u30fc\u30eb\u306b\u901a\u3044\u81ea\u529b\u3067\u76f4\u3057\u3001\u4eca\u306f\u307b\u307c\u5b8c\u6cbb\u3002 \u305d\u3093\u306a\u3053\u3068\u3082\u3042\u3063\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u304b\u3089\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u8ee2\u8eab\u3057\u3001\u73fe\u5728\u306fWEB\u306e\u4e16\u754c\u3067\u751f\u6d3b\u3002 \u696d\u52d9\u3067\u5229\u7528\u3057\u305f\u8a00\u8a9e\u306f \u30fbJAVA\uff083\u5e74\u7a0b\u5ea6\uff09 \u30fbPHP\uff085\u5e74\u7a0b\u5ea6\uff09 \u30fbPython\uff081\u5e74\uff09 \u30fbHTML\uff0815\u5e74\uff09\u30fbCSS\uff0815\u5e74\uff09\u30fbJavaScript\uff0815\u5e74\uff09\u30fbAppScript\uff081\u5e74\uff09 \u597d\u304d\u306a\u3082\u306e\u306fJavaScript\u3002","sameAs":["https:\/\/engineering.webstudio168.jp","https:\/\/www.facebook.com\/kenichi.yoshimura.735\/","https:\/\/www.instagram.com\/qoo_sphynx\/","https:\/\/www.linkedin.com\/in\/--20a9a4190\/","https:\/\/www.youtube.com\/channel\/UCSZ3BHtlV0CqU296Y5lXoXw"],"url":"https:\/\/engineering.webstudio168.jp\/blog\/author\/ichi0726\/"}]}},"_links":{"self":[{"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/posts\/6509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/comments?post=6509"}],"version-history":[{"count":39,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/posts\/6509\/revisions"}],"predecessor-version":[{"id":7585,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/posts\/6509\/revisions\/7585"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/media\/6540"}],"wp:attachment":[{"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/media?parent=6509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/categories?post=6509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/engineering.webstudio168.jp\/blog\/wp-json\/wp\/v2\/tags?post=6509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}