×
Copy
Open
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
SVG for Responsive HTML5
Slide 2
Slide 2 text
@jvhellemond @frontlab Jan van Hellemond
Slide 3
Slide 3 text
Bitmaps are sooo 2012
Slide 4
Slide 4 text
Mathematically de!ned shapes
Slide 5
Slide 5 text
Bitmap Vector
Slide 6
Slide 6 text
Vectors: ✔ In!nitely scalable ✔ Resolution independent ✔ Fewer bytes ✔ Editable ✔ Stylable
Slide 7
Slide 7 text
Bitmaps: ✔ Less creative constraint ✔ Do not need e"ects ✔ Better support, currently ✔ Better tools
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
No content
Slide 10
Slide 10 text
SVG = XML
Slide 11
Slide 11 text
Slide 12
Slide 12 text
Shapes:
Slide 13
Slide 13 text
Paths:
Slide 14
Slide 14 text
Boooooring
Slide 15
Slide 15 text
Boooooring
Slide 16
Slide 16 text
Boooooring
Slide 17
Slide 17 text
Boooooring
Slide 18
Slide 18 text
Boooooring
Slide 19
Slide 19 text
No content
Slide 20
Slide 20 text
No content
Slide 21
Slide 21 text
No content
Slide 22
Slide 22 text
No content
Slide 23
Slide 23 text
Filter e"ects: - Linear gradient - Radial gradients - Blur and noise - RGB color channel manipulation - Matrix transforms
Slide 24
Slide 24 text
HTML
Slide 25
Slide 25 text
No content
Slide 26
Slide 26 text
HTML
Slide 27
Slide 27 text
No content
Slide 28
Slide 28 text
background-image: url() CSS
Slide 29
Slide 29 text
No content
Slide 30
Slide 30 text
No content
Slide 31
Slide 31 text
HTML5
Slide 32
Slide 32 text
!
!! !
Slide 33
Slide 33 text
SVG = XML
Slide 34
Slide 34 text
!
!! !
Slide 35
Slide 35 text
Responsvive! Adaptive! Retina!
Slide 36
Slide 36 text
90%+
Slide 37
Slide 37 text
if (Modernizr.svg) { !// Supports SVG }
Slide 38
Slide 38 text
.svg .foobar { !background: url(foo.svg); }
Slide 39
Slide 39 text
#whizzo { !stroke-width: 3px; !fill-color: #336699; }
Slide 40
Slide 40 text
#foo:hover { !fill-color: red; }
Slide 41
Slide 41 text
Animation
Slide 42
Slide 42 text
Animation
Slide 43
Slide 43 text
#rect:hover { !transition: ... ; } CSS3 transitions
Slide 44
Slide 44 text
Raphaël raphaeljs.com
Slide 45
Slide 45 text
@media screen and (max-width: 50px) { ! #circle { ! ! fill: #a8c45f; ! } } CSS media queries
Slide 46
Slide 46 text
@font-face { ... } SVG Fonts
Slide 47
Slide 47 text
Icon fonts
Slide 48
Slide 48 text
Icon fonts: ✔ Vectors, in!nitely scalable ✔ Small, fewer bytes ✔ Single request, cachable ✘ Single color ✘ Simple shapes
Slide 49
Slide 49 text
No content
Slide 50
Slide 50 text
SVG Font WOFF TrueType
Slide 51
Slide 51 text
fontsquirrel.com/tools/webfont-generator
Slide 52
Slide 52 text
icomoon.io
Slide 53
Slide 53 text
Tools
Slide 54
Slide 54 text
Notepad TextEdit
Slide 55
Slide 55 text
bohemiancodin.com/sketch/ inkscape.org Inkscape Sketch
Slide 56
Slide 56 text
Adobe Illustrator
Slide 57
Slide 57 text
svg-edit code.google.com/p/svg-edit
Slide 58
Slide 58 text
Summary: ✔ Vectors are cool ✔ Use in HTML5 today ✔ Detect support, supply fallback ✔ Embed instead of link ✔ Don't go overboard
Slide 59
Slide 59 text
@jvhellemond @frontlab These slides on slideshare.net/frontlab