Submit Search
Upload
SVG 初心者分享 @ PIXNET SmallTalk
•
1 like
•
278 views
Jocelyn Hsu
Follow
PIXNET 內部分享,希望之後手機上能有更多的 SVG 應用 =D
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 60
Download now
Download to read offline
Recommended
SVG 實作分享
SVG 實作分享
Jocelyn Hsu
KISSY XTemplate
KISSY XTemplate
yiming he
Grid - 新時代的排版利器
Grid - 新時代的排版利器
Jocelyn Hsu
Why Progressive Web App is what you need for your Business
Why Progressive Web App is what you need for your Business
Lets Grow Business
Vue js 大型專案架構
Vue js 大型專案架構
Hina Chen
PWA 與 Service Worker
PWA 與 Service Worker
Anna Su
前端界流傳的神奇招式
前端界流傳的神奇招式
Anna Su
SVG 初心者分享
SVG 初心者分享
Jocelyn Hsu
Recommended
SVG 實作分享
SVG 實作分享
Jocelyn Hsu
KISSY XTemplate
KISSY XTemplate
yiming he
Grid - 新時代的排版利器
Grid - 新時代的排版利器
Jocelyn Hsu
Why Progressive Web App is what you need for your Business
Why Progressive Web App is what you need for your Business
Lets Grow Business
Vue js 大型專案架構
Vue js 大型專案架構
Hina Chen
PWA 與 Service Worker
PWA 與 Service Worker
Anna Su
前端界流傳的神奇招式
前端界流傳的神奇招式
Anna Su
SVG 初心者分享
SVG 初心者分享
Jocelyn Hsu
Bootstrap 4 超詳盡解析
Bootstrap 4 超詳盡解析
Chih-cheng Wang
一拍一产品背后的故事(React实战)
一拍一产品背后的故事(React实战)
Kejun Zhang
Html&css培训 舒克
Html&css培训 舒克
jay li
Responsive Web UI Design
Responsive Web UI Design
jay li
Exam 98-375 HTML5 Application Development Fundamentals
Exam 98-375 HTML5 Application Development Fundamentals
Chieh Lin
2016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練3
2016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練3
Duran Hsieh
Go 夜读 139 期 Excelize 基础库
Go 夜读 139 期 Excelize 基础库
Ri Xu
Html5和css3入门
Html5和css3入门
Xiujun Ma
那些mockup沒告訴你的事@WebConf.tw 2013
那些mockup沒告訴你的事@WebConf.tw 2013
Adam Wang
非常靠谱 Html 5
非常靠谱 Html 5
Tony Deng
Web前端标准在各浏览器中的实现差异
Web前端标准在各浏览器中的实现差异
cleverpig
Dive into Responsive Web Design
Dive into Responsive Web Design
cncuckoo
getPDF.aspx
getPDF.aspx
byron zhao
getPDF.aspx
getPDF.aspx
byron zhao
CSS 菜鳥救星
CSS 菜鳥救星
Ying-Hsiang Liao
前端基础知识回顾
前端基础知识回顾
Wu tianhao
前端样式开发演变之路
前端样式开发演变之路
Zhao Lei
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
Jackson Tian
Css schema by_sofish
Css schema by_sofish
Webrebuild
支付宝CSS构架
支付宝CSS构架
Sofish Lin
More Related Content
Similar to SVG 初心者分享 @ PIXNET SmallTalk
Bootstrap 4 超詳盡解析
Bootstrap 4 超詳盡解析
Chih-cheng Wang
一拍一产品背后的故事(React实战)
一拍一产品背后的故事(React实战)
Kejun Zhang
Html&css培训 舒克
Html&css培训 舒克
jay li
Responsive Web UI Design
Responsive Web UI Design
jay li
Exam 98-375 HTML5 Application Development Fundamentals
Exam 98-375 HTML5 Application Development Fundamentals
Chieh Lin
2016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練3
2016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練3
Duran Hsieh
Go 夜读 139 期 Excelize 基础库
Go 夜读 139 期 Excelize 基础库
Ri Xu
Html5和css3入门
Html5和css3入门
Xiujun Ma
那些mockup沒告訴你的事@WebConf.tw 2013
那些mockup沒告訴你的事@WebConf.tw 2013
Adam Wang
非常靠谱 Html 5
非常靠谱 Html 5
Tony Deng
Web前端标准在各浏览器中的实现差异
Web前端标准在各浏览器中的实现差异
cleverpig
Dive into Responsive Web Design
Dive into Responsive Web Design
cncuckoo
getPDF.aspx
getPDF.aspx
byron zhao
getPDF.aspx
getPDF.aspx
byron zhao
CSS 菜鳥救星
CSS 菜鳥救星
Ying-Hsiang Liao
前端基础知识回顾
前端基础知识回顾
Wu tianhao
前端样式开发演变之路
前端样式开发演变之路
Zhao Lei
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
Jackson Tian
Css schema by_sofish
Css schema by_sofish
Webrebuild
支付宝CSS构架
支付宝CSS构架
Sofish Lin
Similar to SVG 初心者分享 @ PIXNET SmallTalk
(20)
Bootstrap 4 超詳盡解析
Bootstrap 4 超詳盡解析
一拍一产品背后的故事(React实战)
一拍一产品背后的故事(React实战)
Html&css培训 舒克
Html&css培训 舒克
Responsive Web UI Design
Responsive Web UI Design
Exam 98-375 HTML5 Application Development Fundamentals
Exam 98-375 HTML5 Application Development Fundamentals
2016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練3
2016年逢甲大學資訊系:ASP.NET MVC 4 教育訓練3
Go 夜读 139 期 Excelize 基础库
Go 夜读 139 期 Excelize 基础库
Html5和css3入门
Html5和css3入门
那些mockup沒告訴你的事@WebConf.tw 2013
那些mockup沒告訴你的事@WebConf.tw 2013
非常靠谱 Html 5
非常靠谱 Html 5
Web前端标准在各浏览器中的实现差异
Web前端标准在各浏览器中的实现差异
Dive into Responsive Web Design
Dive into Responsive Web Design
getPDF.aspx
getPDF.aspx
getPDF.aspx
getPDF.aspx
CSS 菜鳥救星
CSS 菜鳥救星
前端基础知识回顾
前端基础知识回顾
前端样式开发演变之路
前端样式开发演变之路
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
从无阻塞并行脚本加载(Lab.js)到浏览器消息模型
Css schema by_sofish
Css schema by_sofish
支付宝CSS构架
支付宝CSS构架
SVG 初心者分享 @ PIXNET SmallTalk
1.
SVG 初心者分享 Jocelyn Hsu 2016
/ 08 / 11 @ 痞客邦 SMALL TALK 看懂 UI 給的亂碼檔
2.
outline what / why 基本屬性介紹 路徑與圖形 文字 defs
& use 截圖與遮色片
3.
what / why 基本屬性介紹 路徑與圖形 文字 defs
& use 截圖與遮色片
4.
what / why SCALABLE VECTOR GRAPHICS
5.
what / why 開源 SEO
較好 ( 相較於 png / jpg ) 不因縮放而失真 ( 相較於 icon font ) 不限定單色 不需要使用 gif 也能有動畫 互動性更高
6.
what / why 基本屬性介紹 路徑與圖形 文字 defs
& use 截圖與遮色片
7.
基本屬性介紹 width & height viewBox
( ≠ viewPort ) preserveAspectRatio
8.
基本屬性介紹 width & height viewBox
( ≠ viewPort ) preserveAspectRatio
9.
width & height viewBox
( ≠ viewPort ) preserveAspectRatio 基本屬性介紹 參考範例: http://codepen.io/jonitrythall/pen/8d101869058142d3ce019b249ed35e2b?editors=1100
10.
基本屬性介紹 width & height viewBox
( ≠ viewPort ) preserveAspectRatio
11.
width & height viewBox
( ≠ viewPort ) preserveAspectRatio 基本屬性介紹 參考範例: http://codepen.io/jonitrythall/pen/8d101869058142d3ce019b249ed35e2b?editors=1100
12.
基本屬性介紹 width & height viewBox
( ≠ viewPort ) preserveAspectRatio none "對齊位置 尺寸"
13.
基本屬性介紹 width & height viewBox
( ≠ viewPort ) preserveAspectRatio none "對齊位置 尺寸" "對齊位置 尺寸" 對齊位置 xMin / xMid / xMax YMin / YMid / YMax 尺寸 meet / slice
14.
參考範例: http://codepen.io/jonitrythall/pen/8d101869058142d3ce019b249ed35e2b?editors=1100 基本屬性介紹 width & height viewBox
( ≠ viewPort ) preserveAspectRatio none "對齊位置 尺寸"
15.
what / why 基本屬性介紹 路徑與圖形 文字 defs
& use 截圖與遮色片
16.
路徑與圖形 rect circle ellipse polygon
17.
路徑與圖形 rect circle ellipse polygon
18.
路徑與圖形 這是在瀏覽器上呈現的樣子
19.
路徑與圖形 這是在編輯器上的樣子
20.
路徑與圖形 <path d="…"></path> Mx y
開始處 Lx y 直線 Hx ⽔水平線 Vy 垂直線 Arx ry 夾⾓角 ⼤大⾓角弧? 順時鐘? x y 圓弧 Z end & closepath
21.
路徑與圖形 <path d="…"></path> Mx y
開始處 Lx y 直線 Hx ⽔水平線 Vy 垂直線 Arx ry 夾⾓角 ⼤大⾓角弧? 順時鐘? x y 圓弧 Z end & closepath
22.
路徑與圖形 <path d="…"></path> Mx y
開始處 Lx y 直線 Hx ⽔水平線 Vy 垂直線 Arx ry 夾⾓角 ⼤大⾓角弧? 順時鐘? x y 圓弧 Z end & closepath 1 2 3 1 2 3
23.
24.
本來的檔案
25.
重寫後的檔案
26.
what / why 基本屬性介紹 路徑與圖形 文字 defs
& use 截圖與遮色片
27.
文字 x & y dx
& dy textPath
28.
文字 x & y dx
& dy textPath
29.
文字 x & y dx
& dy textPath
30.
文字 x & y dx
& dy textPath
31.
文字 x & y dx
& dy textPath
32.
文字 x & y dx
& dy textPath 參考範例: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath
33.
參考範例: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath 文字 x & y dx
& dy textPath
34.
what / why 基本屬性介紹 路徑與圖形 文字 defs
& use 截圖與遮色片
35.
避免繪製不必要的元件 重用性 defs & use
36.
避免繪製不必要的元件 重用性 defs & use
37.
避免繪製不必要的元件 重用性 defs & use
38.
避免繪製不必要的元件 重用性 defs & use
39.
避免繪製不必要的元件 重用性 defs & use
40.
避免繪製不必要的元件 重用性 defs & use
41.
避免繪製不必要的元件 重用性 defs & use
42.
避免繪製不必要的元件 重用性 defs & use
43.
避免繪製不必要的元件 重用性 defs & use
44.
避免繪製不必要的元件 重用性 defs & use
45.
避免繪製不必要的元件 重用性 defs & use
46.
what / why 基本屬性介紹 路徑與圖形 文字 defs
& use 截圖與遮色片
47.
圖形以外的都會被剪裁 定義 <clipPath> 設定 clip-path
屬性 截圖與遮色片
48.
參考範例: http://www.oxxostudio.tw/articles/201406/svg-09-clipping-masking.html 圖形以外的都會被剪裁 定義 <clipPath> 設定 clip-path
屬性 截圖與遮色片
49.
參考範例: http://www.oxxostudio.tw/articles/201406/svg-09-clipping-masking.html 圖形以外的都會被剪裁 定義 <clipPath> 設定 clip-path
屬性 截圖與遮色片
50.
截圖與遮色片 灰階分佈:越黑越透明,越白越不透明 定義 <mask> 設定 mask
屬性
51.
參考範例: http://www.oxxostudio.tw/articles/201406/svg-09-clipping-masking.html 灰階分佈:越黑越透明,越白越不透明 定義 <mask> 設定 mask
屬性 截圖與遮色片
52.
參考範例: http://www.oxxostudio.tw/articles/201406/svg-09-clipping-masking.html 灰階分佈:越黑越透明,越白越不透明 定義 <mask> 設定 mask
屬性 截圖與遮色片
53.
截圖與遮色片 參考範例:http://codepen.io/fixcl/pen/CHgrn?editors=1100
54.
截圖與遮色片
55.
截圖與遮色片
56.
截圖與遮色片 再加上一點細節
57.
截圖與遮色片 細節在這:https://codepen.io/rulinshyu/details/vKJNVO/ 請不吝批評與指教 m(_ _)m
58.
59.
references You, Me &
SVG | codeschool SVG 完整教學 31 天 | oxxostudio SVG Tutorial | MDN http://commons.oreilly.com/wiki/index.php/SVG_Essentials https://sarasoueidan.com/tags/svg/index.html http://tutorials.jenkov.com/svg/index.html http://jonibologna.com/svg-viewbox-and-viewport/
60.
thanks for your
listening
Download now