Use SVG to Bring

the Web to Life

Quinton Jason Jr


@quintonjasonjr
thinkx.net/svg

WHY SVG?

SQL Saturday Baton Rouge
  • Resolution Independence
  • Small File Size
  • Accessibility
  • Interactivity
  • Filters and Blend Modes

123 KB

fishadelic.jpg

34 KB

fishadelic.svg

GZIP Compression

GZIP Compression

6.8 KB

SVG - GZIPPED

SVG support
Global Internet Explorer and Android support

STYLING SVG

presentation attributes

Presentation Attributes

inline css

Inline CSS

External CSS External CSS

External CSS

EMBEDDING SVG

SVG Embed IMG

<IMG>

SVG Embed CSS

SVG as CSS Background

<object>

<iframe>

<embed>

Which Do I Use

Which do I use?

A Complete Guide to SVG Fallbacks

Fallbacks

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

RESPONSIVE SVG

CSS

<img>

<object>

<iframe>

<svg>

Adaptive SVG

Adaptive SVG

Different images at different breakpoint points

CSS Animations (Good)

http://codepen.io/quintonjason/pen/aObVVK

CSS Animations (Good)

  • Chrome

  • IE

  • Firefox

CSS Animations (Bad)

  • IE and Opera don't support CSS Transforms
  • Firefox doesn't support % based transform-origin
  • Safari zooming breaks % or px based origins

CSS Animations (Bad)

<TextPath>

Batman

Text Along a Path

See the Pen 7308718401456eefea411060da3249bc by Quinton Jason (@quintonjason) on CodePen.

Animate The Text's Path

Spring and Spirits

triggered morphing

http://sprigsandspirits.com/

Text Effects

  • Can Contain All Types of SVG Shapes and Images
  • Simple or Complex
  • Resized Without Losing Shape

Patterns

Animated Text Stroke

Animated Text Fill

Filter Effects

  • Use Inline SVG
  • Provide a <title>
  • Provide a <desc>ription
  • Use <text>
  • Give it an ARIA role

Accessibility

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

Icon Fonts?

SVG Morpheus

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

Be Expressive

Resources

Awesome SVG Github

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

SVG Codrops Resource

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

SQL Saturday Baton Rouge

See the Pen 34836cf0043e9cb55ca49a0329e50d34 by Quinton Jason (@quintonjason) on CodePen.