Skip to content

Latest commit

 

History

History
80 lines (66 loc) · 3.32 KB

2019-10_SVG-0-35_Net.md

File metadata and controls

80 lines (66 loc) · 3.32 KB

Hi! I'm Shalanah!

SVG 0-35: A code-along

Intro

  • Usually do "pretty" slides (not this time!)
  • Start slow... going to build :)
  • Covering
    • Hand coding inline SVGs + rad things with them
    • Raising hands
      • Heard of SVG
      • Used svg assets in a site
      • Exported svgs using software
      • Created svgs using software
      • Edited svg code in file / inline
      • Inline svgs
      • Animated svgs
  • Not covering
    • Svg files
    • Browser differences
    • Vector graphic softwares (Illustrator, Inkscape etc)
  • MDN Resources
  • Ask questions along the way! Let me know if I'm going to fast!

1. Preserve Aspect Ratio

2. Coordinates + Shapes

Additional Links

3. Clips + Masks

Additional Links

4. Color Matrix + Filters

Additional Links

In production

  • WHCC: Card Editor (went live about 3 years ago)

Quick words on...

Saving files + optimizing

  • Reduce digits
    • Select good viewboxes
    viewBox="0 0 10 10"
    viewBox="0 0 28000 28000"
    viewBox="0 0 10.0625 10.0625"
    
    • Reduce decimal points (smartly)
  • Remove not needed code
  • SVGOMG
  • SVGO

Performance

  • Smaller file size the better 😀👍
  • Svg elements add dom nodes