lmgonzalves / segment

A JavaScript library to draw and animate SVG path strokes
http://lmgonzalves.github.io/segment
MIT License
1.74k stars 98 forks source link

segment.js:35 Uncaught TypeError: path.getTotalLength is not a function #7

Closed saadkkhan closed 8 years ago

saadkkhan commented 8 years ago

Any solution for this please?

Scripts loaded as follows: jquery-1.12.4.min.js segment-js/1.0.8/segment.js

    var myPath = document.getElementById("dvr"),
        segment = new Segment(myPath);

    segment.draw("25%", "75% - 10", 1);