Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Responsive images have landed
Search
Derek Johnson
October 09, 2014
Technology
190
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Responsive images have landed
An introduction to responsive images standards: , @srcset and @sizes.
Derek Johnson
October 09, 2014
More Decks by Derek Johnson
See All by Derek Johnson
Responsive Web Design
derekjohnson
0
48
Git branching strategy
derekjohnson
0
100
Git basics
derekjohnson
1
72
How modern web design works
derekjohnson
0
440
Other Decks in Technology
See All in Technology
Kiro Crewで「みのるん式」仕事術やってみた
minorun365
PRO
3
1.1k
背中から、背中へ ー 社外コミュニティで学んだ「雑に背中を押す」という恩送り ー / easygoing encouragement and pay forward to community
naitosatoshi
0
320
CTO Night|NotionのAIエージェントとFDE
kzkhykw1991
0
320
Claude Codeから見る、エンジニアの世界の変容とその先
oikon48
5
4.1k
Teaching Python with three kinds of AI
reuven
0
120
クラウドサインを止めずに Nuxt へ 次の10年のために先に決めたこと
bengo4com
1
150
AIをリアル世界に解き放つ 〜M5Stack×AIであなたのアイディアを手の平に〜
hamadakoji
1
540
「私が一番顧客に詳しい」を捨てる~ 全員が一次情報に精通する開発チームをつくり、PMが次のボトルネックへ染み出すまで
kaminashi
4
2.4k
これだけは抑えておきたい!後悔しない re:Invent の過ごし方 / AWS re:Invent 2026 prestudy
kinunori
2
350
AIエージェント時代、Kaggleにどう取り組むか
takanao
1
170
ポケモン対戦を自動で記録して振り返ろう
fufufukakaka
0
400
Agent × Maestro で始める モバイル E2E 端末準備からテスト実行・結果確認まで
sansantech
PRO
0
210
Featured
See All Featured
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Building Applications with DynamoDB
mza
96
7.3k
Docker and Python
trallard
47
4.2k
Producing Creativity
orderedlist
PRO
348
41k
Making Projects Easy
brettharned
120
6.8k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
790
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
First, design no harm
axbom
PRO
2
1.4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
460
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
540
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
70
67k
Transcript
Responsive images ! Derek Johnson
<img src alt>
None
None
• Resolution switching • Viewport based • Pixel density •
Art direction • Design breakpoints • Media types • Relative units • Image formats • User control of source
<img src alt srcset>
srcset= “cat.jpg 1x, cat2.jpg 2x”
None
None
None
srcset= “cat.jpg 300w, cat2.jpg 600w”
None
None
None
None
None
None
None
srcset= “cat.jpg 300w, cat2.jpg 600w” sizes= “(min-width:50em) 30vw, (min-width:20em) 50vw,
100vw”
None
None
None
None
None
None
None
<picture> <source srcset media> <source srcset media> <img src alt>
</picture>
<picture> <source srcset type> <source srcset type> <img src alt>
</picture>
<picture> <source srcset="images/asio-otus-300.webp 300w, images/asio-otus-400.webp 400w, images/asio-otus-600.webp 600w, images/asio-otus-800.webp 800w"
sizes="(min-width:78.947em) 18.75em, (min-width:74em) 23.75vw, (min-width:60em) 31.6666667vw, (min-width:38em) 47.5vw, 95vw" type="image/webp"> <source srcset="images/asio-otus-300.jpg 300w, images/asio-otus-400.jpg 400w, images/asio-otus-600.jpg 600w, images/asio-otus-800.jpg 800w" sizes="(min-width:78.947em) 18.75em, (min-width:74em) 23.75vw, (min-width:60em) 31.6666667vw, (min-width:38em) 47.5vw, 95vw" type="image/jpeg"> <img src="images/asio-otus-300.jpg" alt="Long eared owl"> </picture>
browser support
polyfill
None