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
CSSでblend-modeを使ってみよう!
Search
Emi MATSUDA
November 29, 2019
Programming
0
210
CSSでblend-modeを使ってみよう!
https://tambourine.connpass.com/event/149622/
上記イベントで話したスライドです
Emi MATSUDA
November 29, 2019
Tweet
Share
More Decks by Emi MATSUDA
See All by Emi MATSUDA
コワくないmicroInteractionの考え方・作り方
matsudaemi
0
120
コワくないJS:オープニングトーク
matsudaemi
1
210
コワくない.js1@フレームワークの話
matsudaemi
0
190
リアルパンくずナビLT
matsudaemi
0
730
Other Decks in Programming
See All in Programming
Functional Event Sourcing using Sekiban
tomohisa
0
100
Realtime API 入門
riofujimon
0
150
エンジニアとして関わる要件と仕様(公開用)
murabayashi
0
300
TypeScriptでライブラリとの依存を限定的にする方法
tutinoko
3
700
Contemporary Test Cases
maaretp
0
140
Laravel や Symfony で手っ取り早く OpenAPI のドキュメントを作成する
azuki
2
120
ECS Service Connectのこれまでのアップデートと今後のRoadmapを見てみる
tkikuc
2
260
flutterkaigi_2024.pdf
kyoheig3
0
150
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
900
Jakarta EE meets AI
ivargrimstad
0
170
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
630
Ethereum_.pdf
nekomatu
0
470
Featured
See All Featured
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
The Cost Of JavaScript in 2023
addyosmani
45
6.8k
BBQ
matthewcrist
85
9.3k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
28
2k
The Pragmatic Product Professional
lauravandoore
31
6.3k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
We Have a Design System, Now What?
morganepeng
50
7.2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Git: the NoSQL Database
bkeepers
PRO
427
64k
The World Runs on Bad Software
bkeepers
PRO
65
11k
A designer walks into a library…
pauljervisheath
204
24k
Transcript
CSSͰblend-modeΛͬͯΈΑ͏ʂ 2019.11.29(fri) 18:00~ tambourine inc. enginner : MATSUDA Emi
ϑϩϯτଆͰɺը૾Λ৮Δඞཁ͕͋Δ߹
ϑϩϯτଆͰɺը૾Λ৮Δඞཁ͕͋Δ߹ • Ϩεϙϯγϒ Πϝʔδ • τϦϛϯά • ϦαΠζ • มܗ
ϑϩϯτଆͰɺը૾Λ৮Δඞཁ͕͋Δ߹ • Ϩεϙϯγϒ Πϝʔδɿpictureཁૉɺsrcsetଐੑ • τϦϛϯάɿobject-fitʢclipফ໓ʣϓϩύςΟ • ϦαΠζɿwidthͱ͔max-widthͱ͔ͷϓϩύςΟ • มܗɿtransformϓϩύςΟ
͜ͳ͍ͩґཔ͞Εͨͭ • ʛɾωɾʣ{ ϩΰɺޫΒͤͯɻ
͜ͳ͍ͩґཔ͞Εͨͭ • ʛɾωɾʣ{ ϩΰɺޫΒͤͯɻ • …ɻ } ʢɾωɾ
͜ͳ͍ͩґཔ͞Εͨͭ • ͞Εͨϩΰ
͜ͳ͍ͩґཔ͞Εͨͭ • ͞Εͨϩΰ • ࠇഎܠ͖ͭpng
͜ͳ͍ͩґཔ͞Εͨͭ • ͞Εͨϩΰ • ࠇഎܠ͖ͭpng • …ɻ } ʢɾωɾ
CSSͰͳΜͱ͔͢Δͧɻ
ը૾ʹରͯ͠ޮՌΛ༩͑Δ
ը૾ʹରͯ͠ޮՌΛ༩͑Δ • filterϓϩύςΟ • blend-modeϓϩύςΟ
ը૾ʹରͯ͠ޮՌΛ༩͑Δ • filterϓϩύςΟɿը૾શମʹରͯ͠ޮՌΛ༩͑Δ • blend-modeϓϩύςΟɿ৭ͷॏͳΓʹޮՌΛ༩͑Δ
ը૾ʹରͯ͠ޮՌΛ༩͑Δ • filterϓϩύςΟɿը૾શମʹରͯ͠ޮՌΛ༩͑Δ • blend-modeϓϩύςΟɿ৭ͷॏͳΓʹޮՌΛ༩͑Δ
ը૾ʹରͯ͠ޮՌΛ༩͑Δ • ཁɺPhotoshopͷίϨ
blend-modeϓϩύςΟͱ • background-blend-mode • mix-blend-mode
blend-modeϓϩύςΟͱ • background-blend-modeɿཁૉͷഎܠը૾ɾഎܠ৭ΛϒϨ ϯυ͢Δͱ͖ʹ͏ • mix-blend-modeɿޙΖʹ͋Δཁૉͱͷը૾ɾഎܠ৭Λϒ Ϩϯυ͢Δͱ͖ʹ͏
blend-modeϓϩύςΟͱ • background-blend-modeɿཁૉͷഎܠը૾ɾഎܠ৭ΛϒϨ ϯυ͢Δͱ͖ʹ͏ • mix-blend-modeɿޙΖʹ͋Δཁૉͱͷը૾ɾഎܠ৭Λϒ Ϩϯυ͢Δͱ͖ʹ͏
blend-modeϓϩύςΟͱ • demo • https://jsfiddle.net/4ghyzvcp/53/
͜ͳ͍ͩґཔ͞Εͨͭ • ͞Εͨϩΰ • ࠇഎܠ͖ͭpng
͜ͳ͍ͩґཔ͞Εͨͭ • ͞Εͨϩΰ • demo • https://jsfiddle.net/xnza8hbk/9/
ҙ • ͑Δͱ͜ΖΛΘ͖·͑Α͏ɻ • https://caniuse.com/#search=mix-blend-mode
ҙ • ͍ͯ͠ͳ͍ը૾ͷΘΓʹ͏ͷNG • ͲΜͳڥͰɺใਖ਼͑͘͠ΔྗΛɻ • ϓϥεΞϧϑΝͷ০ʹ͏ͳΒ͍͍͔ͳʔɻ͘Β͍ɻ
·ͱΊ • ͓ࣄ͍ΖΜͳཁٻʹԠ͑ͳ͍ͱ͍͚ͳ͍ • ը૾ΛCSSͰ͍͡Δ͜ͱՄೳ • ͪΐͬͱͨ͠ΤϑΣΫτՃ͑ΔͷͰ͋ΕɺCSSศར • Γ͗͢Α͘ͳ͍
͓ΘΓ • ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻ