Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
まぼろしのJS勉強会 #2 「細かすぎて伝わらないUI実装選手権」『使えそうで使えないけど使い...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Kazuma Nishihata
January 12, 2018
Technology
380
1
Share
まぼろしのJS勉強会 #2 「細かすぎて伝わらないUI実装選手権」『使えそうで使えないけど使いたい IntersectionObserver』
Kazuma Nishihata
January 12, 2018
More Decks by Kazuma Nishihata
See All by Kazuma Nishihata
フロントエンドの技術選定
kazumanishihata
6
6.6k
Vue with TypeScript
kazumanishihata
0
1.9k
ころばぬ先のテクニカルディレクション
kazumanishihata
1
610
動きのデザインとフロントエンドの連携
kazumanishihata
2
1.6k
RxJSで始めるリアクティブプログラミング
kazumanishihata
1
1.8k
WP REST APIとReactで作るSPA
kazumanishihata
2
9.9k
ぼくらのCONST戦争 SCRIPTY #5
kazumanishihata
2
3.5k
Other Decks in Technology
See All in Technology
Claude Code / Codex / Kiro に AWS 権限を 渡すとき、何を設計すべきか
k_adachi_01
5
1.5k
開発サイクルのボーダーレス化に伴う組織変革から学んだこと / Organizational Transformation Amid the Borderless Development Cycle
mii3king
0
120
可視化から活用へ — Mesh化・Segmentation・アライメントの研究動向
gpuunite_official
0
220
20260515 ログイン機能だけではないアカウント管理を全体で考える~サービス設計者向け~
oidfj
1
680
Tachikawa.any 運営挨拶
daitasu
0
180
全社統制を維持しながら現場負担をどう減らすか〜プラットフォームチームとセキュリティチームで進めたSecurity Hub活用によるAWS統制の見直し〜/secjaws-security-hub-custom-insights
mhrtech
1
540
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4.4k
PdM・Eng・QAで進めるAI駆動開発の現在地/aidd-with-pdm-eng-qa
shota_kusaba
0
250
クラウドからエッジまで ~ 1,700台を支える監視設計~
optfit
0
110
毎日の作業を Claude Code 経由にしたら、 ノウハウがコードになった
kossykinto
1
1.4k
"うちにはまだ早い"は本当? ─ 小さく始めるPlatform Engineering入門
harukasakihara
6
610
AI飲み会幹事エージェントを作っただけなのに
ykimi
0
230
Featured
See All Featured
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
110
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.7k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
140
The Curious Case for Waylosing
cassininazir
1
340
The World Runs on Bad Software
bkeepers
PRO
72
12k
Side Projects
sachag
455
43k
What's in a price? How to price your products and services
michaelherold
247
13k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
190
Ethics towards AI in product and experience design
skipperchong
2
270
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
290
Chasing Engaging Ingredients in Design
codingconduct
0
190
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.1k
Transcript
εϚʔτϑΥϯαΠτ੍࡞࣮ફߨ࠲ to-R ാҰഅ Section : ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ IntersectionObserver ͷ+4ษڧձʮࡉ͔͗ͯ͢ΘΒͳ͍6*࣮બखݖʯ
ͷ+4ษڧձʮ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ*OUFSTFDUJPO0CTFSWFSʯ *OUFSTFDUJPO0CTFSWFSʁ
ͷ+4ษڧձʮ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ*OUFSTFDUJPO0CTFSWFSʯ
ͷ+4ษڧձʮ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ*OUFSTFDUJPO0CTFSWFSʯ ϒϥβͷදࣔྖҬʹ ཁૉ͕ೖ͔ͬͨͲ͏͔ௐΔ"1*
ͷ+4ษڧձʮ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ*OUFSTFDUJPO0CTFSWFSʯ const intersectionChanged = changes => { if (changes[0].intersectionRatio <=
0) return; console.log('change') }; const observerTarget = new IntersectionObserver(intersectionChanged); observerTarget.observe(document.querySelector('.js-target'));
ͷ+4ษڧձʮ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ*OUFSTFDUJPO0CTFSWFSʯ σϞ
ͷ+4ษڧձʮ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ*OUFSTFDUJPO0CTFSWFSʯ ͳΜ͔ͪΌΜͱ͑ΔΑ͏ʹͳͬͯͨ
ͷ+4ษڧձʮ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ*OUFSTFDUJPO0CTFSWFSʯ
ͷ+4ษڧձʮ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ*OUFSTFDUJPO0CTFSWFSʯ ϙϦϑΟϧ <script src="https://polyfill.io/v2/polyfill.min.js?features=IntersectionObserver"></script>
ͷ+4ษڧձʮ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ*OUFSTFDUJPO0CTFSWFSʯ ͬͺ͑ͳ͍ʁ
ͷ+4ษڧձʮ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ*OUFSTFDUJPO0CTFSWFSʯ ͦͦɺແݶεΫϩʔϧͬͯ ΞΫηγϏϦςΟతʹͲ͏ͳͷʁ
ͷ+4ษڧձʮ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ*OUFSTFDUJPO0CTFSWFSʯ
ͷ+4ษڧձʮ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ*OUFSTFDUJPO0CTFSWFSʯ ݁
ͷ+4ษڧձʮ͑ͦ͏Ͱ͑ͳ͍͚Ͳ͍͍ͨ*OUFSTFDUJPO0CTFSWFSʯ ศར