Skip to content

Latest commit

 

History

History
71 lines (57 loc) · 3.04 KB

2019-09_SVG-0-35_ReactMpls.md

File metadata and controls

71 lines (57 loc) · 3.04 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
  • Not covering
    • Svg files
    • Browser differences
    • Vector graphic softwares (Illustrator, Inkscape etc)
  • MDN Resources

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