Skip to content

Instantly share code, notes, and snippets.

@jahe
Created October 3, 2018 11:40
Show Gist options
  • Save jahe/2c607a105a9ccd160fb18ce647921588 to your computer and use it in GitHub Desktop.
Save jahe/2c607a105a9ccd160fb18ce647921588 to your computer and use it in GitHub Desktop.
SVG Cheatsheet
Display the source blob
Display the rendered blob
Raw
Viewport - width + height attributes on <svg> = How big the canvas is on HTML
Viewbox - e.g. 0 0 20 20 (x y width height) = defines how the values in the <path> relate to the width and height attributes on the <svg> - One unit in the <path> can then be calculated to x pixels based on that
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment