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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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.8k
ぼくらのCONST戦争 SCRIPTY #5
kazumanishihata
2
3.5k
Other Decks in Technology
See All in Technology
Databricks Appsで実現する社内向けAIアプリ開発の効率化
r_miura
0
220
【AWS】CloudTrail LakeとCloudWatch Logs Insightsの使い分け方針
tsurunosd
0
130
OPENLOGI Company Profile for engineer
hr01
1
61k
TUNA Camp 2026 京都Stage ヒューリスティックアルゴリズム入門
terryu16
0
650
「活動」は激変する。「ベース」は変わらない ~ 4つの軸で捉える_AI時代ソフトウェア開発マネジメント
sentokun
0
140
Amazon Qはアマコネで頑張っています〜 Amazon Q in Connectについて〜
yama3133
1
170
昔話で振り返るAWSの歩み ~S3誕生から20年、クラウドはどう進化したのか~
nrinetcom
PRO
0
120
The essence of decision-making lies in primary data
kaminashi
0
200
OpenClawでPM業務を自動化
knishioka
2
360
トイルを超えたCREは何屋になるのか
bengo4com
0
120
Physical AI on AWS リファレンスアーキテクチャ / Physical AI on AWS Reference Architecture
aws_shota
1
250
Bref でサービスを運用している話
sgash708
0
220
Featured
See All Featured
Unsuck your backbone
ammeep
672
58k
The Curse of the Amulet
leimatthew05
1
11k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
110
How STYLIGHT went responsive
nonsquared
100
6k
4 Signs Your Business is Dying
shpigford
187
22k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
290
YesSQL, Process and Tooling at Scale
rocio
174
15k
The Curious Case for Waylosing
cassininazir
0
280
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
250
The Invisible Side of Design
smashingmag
302
51k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
170
We Have a Design System, Now What?
morganepeng
55
8.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ʯ ศར