Top Banner
USE SVG TO BRING THE WEB TO LIFE Quinton Jason Jr @quintonjasonjr thinkx.net/svg
60

Use SVG to Bring the Web to Life (Quinton Jason Jr)

Jul 28, 2015

Download

Internet

Future Insights
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Use SVG to Bring the Web to Life (Quinton Jason Jr)

USE SVG TO BRINGTHE WEB TO LIFE

Quinton Jason Jr

@quintonjasonjr

thinkx.net/svg

Page 2: Use SVG to Bring the Web to Life (Quinton Jason Jr)
Page 3: Use SVG to Bring the Web to Life (Quinton Jason Jr)

WHY SVG?

Page 4: Use SVG to Bring the Web to Life (Quinton Jason Jr)
Page 5: Use SVG to Bring the Web to Life (Quinton Jason Jr)

Resolution Independence

Small File Size

Accessibility

Interactivity

Filters and Blend Modes

Page 6: Use SVG to Bring the Web to Life (Quinton Jason Jr)

123 KBfishadelic.jpg

Page 7: Use SVG to Bring the Web to Life (Quinton Jason Jr)
Page 8: Use SVG to Bring the Web to Life (Quinton Jason Jr)

34 KB

Page 9: Use SVG to Bring the Web to Life (Quinton Jason Jr)

GZIP COMPRESSION

Page 10: Use SVG to Bring the Web to Life (Quinton Jason Jr)
Page 11: Use SVG to Bring the Web to Life (Quinton Jason Jr)

6.8 KB

Page 12: Use SVG to Bring the Web to Life (Quinton Jason Jr)
Page 13: Use SVG to Bring the Web to Life (Quinton Jason Jr)
Page 14: Use SVG to Bring the Web to Life (Quinton Jason Jr)

STYLING SVG

Page 15: Use SVG to Bring the Web to Life (Quinton Jason Jr)

PRESENTATION ATTRIBUTES

Page 16: Use SVG to Bring the Web to Life (Quinton Jason Jr)

INLINE CSS

Page 17: Use SVG to Bring the Web to Life (Quinton Jason Jr)

EXTERNAL CSS

Page 18: Use SVG to Bring the Web to Life (Quinton Jason Jr)

EMBEDDING SVG

Page 19: Use SVG to Bring the Web to Life (Quinton Jason Jr)

<IMG>

Page 20: Use SVG to Bring the Web to Life (Quinton Jason Jr)

SVG AS CSS BACKGROUND

Page 21: Use SVG to Bring the Web to Life (Quinton Jason Jr)

<OBJECT>

<IFRAME>

<EMBED>

Page 22: Use SVG to Bring the Web to Life (Quinton Jason Jr)

WHICH DO I USE?

Page 23: Use SVG to Bring the Web to Life (Quinton Jason Jr)

FALLBACKShttps://css-tricks.com/a-complete-guide-to-svg-fallbacks/

Page 24: Use SVG to Bring the Web to Life (Quinton Jason Jr)

RESPONSIVE SVG

Page 25: Use SVG to Bring the Web to Life (Quinton Jason Jr)

CSS

Page 26: Use SVG to Bring the Web to Life (Quinton Jason Jr)

<IMG>

<OBJECT>

Page 27: Use SVG to Bring the Web to Life (Quinton Jason Jr)

<IFRAME>

Page 28: Use SVG to Bring the Web to Life (Quinton Jason Jr)

<SVG>

Page 29: Use SVG to Bring the Web to Life (Quinton Jason Jr)

ADAPTIVE SVGDifferent images at different breakpoint points

Page 30: Use SVG to Bring the Web to Life (Quinton Jason Jr)

CSS TRANSFORMS (GOOD)

Page 31: Use SVG to Bring the Web to Life (Quinton Jason Jr)

CSS TRANSFORMS (GOOD)

Page 32: Use SVG to Bring the Web to Life (Quinton Jason Jr)

CSS TRANSFORMS (BAD)

Page 33: Use SVG to Bring the Web to Life (Quinton Jason Jr)

IE and Opera don't support CSS Transforms

Firefox doesn't support % based transform-origin

Safari zooming breaks % or px based origins

CSS TRANSFORMS (BAD)

Page 34: Use SVG to Bring the Web to Life (Quinton Jason Jr)

<TEXTPATH>

Page 35: Use SVG to Bring the Web to Life (Quinton Jason Jr)

Some random text Some random

TEXT ALONG A PATH

Page 36: Use SVG to Bring the Web to Life (Quinton Jason Jr)

Fr

ANIMATE TEXT ALONG A PATH

Page 37: Use SVG to Bring the Web to Life (Quinton Jason Jr)

Some random text Some random

Page 38: Use SVG to Bring the Web to Life (Quinton Jason Jr)
Page 39: Use SVG to Bring the Web to Life (Quinton Jason Jr)

2005Batman Begins

Movie

SMIL PATH MORPHINGhttp://tavmjong.free.fr/blog/?p=741

Page 40: Use SVG to Bring the Web to Life (Quinton Jason Jr)

TRIGGERED MORPHINGhttp://codepen.io/chriscoyier/pen/DpFfE/

Page 41: Use SVG to Bring the Web to Life (Quinton Jason Jr)
Page 42: Use SVG to Bring the Web to Life (Quinton Jason Jr)

http://alexk111.github.io/SVG-Morpheus/

Page 43: Use SVG to Bring the Web to Life (Quinton Jason Jr)

TEXT EFFECTS

Page 44: Use SVG to Bring the Web to Life (Quinton Jason Jr)

Can Contain All Type of SVG shapes and images

Simple or Complex

Resized without losing shape

PATTERNS

Page 45: Use SVG to Bring the Web to Life (Quinton Jason Jr)

TEXT FILLS

XXDDEESSIIGGNN

Page 46: Use SVG to Bring the Web to Life (Quinton Jason Jr)

TEXT STROKE

CREEPYCREEPYCREEPYCREEPYCREEPY

Page 47: Use SVG to Bring the Web to Life (Quinton Jason Jr)

FORM ELEMENTS

Page 48: Use SVG to Bring the Web to Life (Quinton Jason Jr)

SVG AS SUBMIT BUTTONhttp://tympanus.net/Tutorials/CircularProgressButton/

Page 49: Use SVG to Bring the Web to Life (Quinton Jason Jr)

FILTER EFFECTS

Page 50: Use SVG to Bring the Web to Life (Quinton Jason Jr)

MOTION BLURhttp://codepen.io/lbebber/pen/zxpMZw

Page 51: Use SVG to Bring the Web to Life (Quinton Jason Jr)

GLITCH EFFECT

http://codepen.io/lbebber/pen/qEjRYd/

Page 52: Use SVG to Bring the Web to Life (Quinton Jason Jr)

GOOEY EFFECT

4 3

2 1

http://codepen.io/lbebber/pen/OPjxZL/

Page 53: Use SVG to Bring the Web to Life (Quinton Jason Jr)

Use Inline SVG

Provide a <title>

Provide a <desc>ription

Use <text>

Give it an ARIA role

ACCESSIBILITYhttp://www.sitepoint.com/tips-accessible-svg/

Page 54: Use SVG to Bring the Web to Life (Quinton Jason Jr)

BE EXPRESSIVE

Page 55: Use SVG to Bring the Web to Life (Quinton Jason Jr)
Page 56: Use SVG to Bring the Web to Life (Quinton Jason Jr)

RESOURCES

Page 57: Use SVG to Bring the Web to Life (Quinton Jason Jr)

https://github.com/willianjusten/awesome-svg

Page 58: Use SVG to Bring the Web to Life (Quinton Jason Jr)
Page 59: Use SVG to Bring the Web to Life (Quinton Jason Jr)

http://tympanus.net/codrops/?s=svg&search-type=posts

Page 60: Use SVG to Bring the Web to Life (Quinton Jason Jr)