Skip to content

Instantly share code, notes, and snippets.

@williwambu
Last active September 3, 2018 06:38
Show Gist options
  • Save williwambu/defb8f0fe56190f36935990dbe300385 to your computer and use it in GitHub Desktop.
Save williwambu/defb8f0fe56190f36935990dbe300385 to your computer and use it in GitHub Desktop.
get-svg-path-length.js
const path = document.querySelector('path-selector');
const pathLength = path.getTotalLength();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment