lengthy-svg

v0.7.0
Microlibrary to give an SVG path's length in a CSS var.
svg path length stroke-dasharray stroke-dashoffset css variables custom properties

build

rollup src/lengthy-svg.js --output.format umd --name 'Lengthy' --output.file lengthy-svg.js && uglifyjs -c -m -o lengthy-svg.min.js -- lengthy-svg.js && npm run sizes

sizes

gzip -9 -c lengthy-svg.min.js | wc -c && cat lengthy-svg.min.js | wc -c
npm i lengthy-svg

Metadata

  • MIT
  • Whatever
  • Stephen Shaw
  • released 1/31/2018

Downloads

Maintainers