mattanglin / svg-to-cubic-bezier

JavaScript function to convert SVG paths to array of cubic bezier points for path animation with GSAP
25 stars 1 forks source link

The example doesn't run on chrome #1

Open geohuz opened 7 years ago

geohuz commented 7 years ago

On firefox it displays the result array, but in Chrome it shows:


Uncaught TypeError: Cannot read property 'numberOfItems' of undefined
    at convertToCubicBezier

  | convertToCubicBezier | @ | svg-path-converter.js:7
 ```
chillyistkult commented 5 years ago

Same issue. For all people stranded here have a look at https://motion.ant.design/components/tween-one#components-tween-one-demo-path