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
CSS3带来的变化
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
w3cplus
January 05, 2016
Technology
1.5k
0
Share
CSS3带来的变化
CSS3带来的变化
w3cplus
January 05, 2016
More Decks by w3cplus
See All by w3cplus
手淘互动动效探索
w3cplus
0
250
CSS Future
w3cplus
2
640
Web Animation
w3cplus
5
500
Web重构之道
w3cplus
1
2.9k
Sass带来的变革
w3cplus
2
630
Responsive小试牛刀
w3cplus
3
570
CSS预处器——Sass、LESS和Stylus实践
w3cplus
0
400
http协议与缓存简述
w3cplus
5
540
前端自动化工具探索
w3cplus
4
1.1k
Other Decks in Technology
See All in Technology
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
5
14k
OBI+APMでお手軽にアプリケーションのオブザーバビリティを手に入れよう
kenshimuto
0
260
Data Hubグループ 紹介資料
sansan33
PRO
0
2.9k
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
74k
ルールルルルル私的函館観光ガイド── 函館の街はイクラでも楽しめる!
nomuson
0
170
暗黙知について一歩踏み込んで考える - 暗黙知の4タイプと暗黙考・暗黙動へ
masayamoriofficial
0
1.5k
Claude Teamプランの選定と、できること/できないこと
rfdnxbro
1
2.3k
新規サービス開発におけるReact Nativeのリアル〜技術選定の裏側と実践的OSS活用〜
grandbig
2
190
Bluesky Meetup in Tokyo vol.4 - 2023to2026
shinoharata
0
170
2026年に相応しい 最先端プラグインホストの設計<del>と実装</del>
atsushieno
0
110
組織的なAI活用を阻む 最大のハードルは コンテキストデザインだった
ixbox
6
1.8k
あるアーキテクチャ決定と その結果/architecture-decision-and-its-result
hanhan1978
2
590
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
A Soul's Torment
seathinner
6
2.6k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
180
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
160
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.4k
Evolving SEO for Evolving Search Engines
ryanjones
0
180
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
180
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
WENDY [Excerpt]
tessaabrams
9
37k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Transcript
CSS3带来的变化 By @大貘
CSS3带来的变化 • 选择器 • 圆⾓角、阴影和渐变 • 单位 • 媒体查询 •
布局 • 颜⾊色 • 动画 • 图标 • 混合模式 • 图形 • 变量与函数 • ⽣生成内容 • 其他
CSS3带来的变化之选择器 1.属性选择器E[foo^=“bar”]、E[foo*=“bar”]… 2.伪类选择器E:nth-child(n)、E:nth-of-type(n)… 3.相邻选择器E ~ F、E + F 1.否定伪类E:not() 2.关系伪类E:has()
3.匹配伪类E:matches()
http://codepen.io/airen/pen/gpagMK http://codepen.io/airen/pen/bdVgwO
CSS3带来的变化之单位 1.rem 2.vh、vw 3.vmin和vmax
CSS3带来的变化之单位 rem相对于根元素<html>的font-size计算 html{font-size: 14px;}
CSS3带来的变化之单位 1vw= viewport宽度 / 100 1vh= viewport⾼高度 / 100 https://codepen.io/tutsplus/embed/gbPQga
CSS3带来的变化之单位 vmin和vmax 假设viewport的尺⼨寸是1100px( W)* 700px (H),1vmin = 7px, 1vmax =
11px 假设viewport的尺⼨寸是800px( W)* 1080px (H),1vmin = 8px, 1vmax = 10.8px
CSS3带来的变化之颜色 RGB/RGBA! R -> Red (0~255) G -> Green (0
~ 255) B -> Blue (0 ~ 255) A -> alpha (0 ~ 1) HSL/HSLA! H -> hue (any integer) S -> saturation (0% ~ 100%) L -> lightness (0% ~ 100%) A -> alpha (0 ~ 1)
CSS3带来的变化之颜色 http://myst729.github.io/assets/slides/2013-09-27-css-color-notation
CSS3带来的变化之颜色 currentColor
CSS3带来的变化之圆角、阴影和渐变 1、圆⾓角、阴影和渐变替代图⽚片 2、阴影和渐变绘制图形
CSS3带来的变化之动画 animation改变⽤用户体验
CSS3带来的变化之动画12原则 1、挤压和拉伸 2、预备动作 3、演出布局 4、连续运动和姿态对应 5、跟随和重叠动作 6、缓⼊入缓出 7、弧线运动 8、次要动作 9、时间节奏
10、夸张⼿手法 11、扎实的描绘 12、吸引⼒力 http://www.w3cplus.com/css3/animation-principles-for-the-web.html
CSS3带来的变化之Material Design http://www.materialup.com/
CSS3带来的变化之媒体查询 媒体查询(Media Queries)造就了RWD http://www.w3cplus.com/responsive/9-basic-principles-of-responsive-web-design.html http://www.w3cplus.com/css3/10-basic-tips-about-responsive-design.html
CSS3带来的变化之图标 CSS绘制 @font-face
CSS3带来的变化之布局 Flexbox Grid http://www.zhihu.com/question/28542816/answer/41224348 http://www.w3cplus.com/blog/tags/355.html http://www.w3cplus.com/blog/tags/157.html
CSS3带来的变化之混合模式 background-blend-mode mix-blend-mode http://www.w3cplus.com/blog/tags/408.html
CSS3带来的变化之图形 shape-outside clip-path http://www.w3cplus.com/blog/tags/418.html http://www.w3cplus.com/blog/tags/431.html
CSS3带来的变化之变量与函数
CSS3带来的变化之生成内容 http://www.w3cplus.com/css3/learning-to-use-the-before-and-after-pseudo-elements-in-css.html http://www.w3cplus.com/css3/pseudo-element-roundup.html
CSS3带来的变化之其他
CSS3带来的变化之Q&A The End && THX!!!