lcdsantos / jquery-drawsvg

Lightweight, simple to use jQuery plugin to animate SVG paths
http://lcdsantos.github.io/jquery-drawsvg/
MIT License
769 stars 139 forks source link

TypeError: $({ len: 0 }).animate is not a function. (In '$({ len: 0 }).animate', '$({ len: 0 }).animate' is undefined) #15

Open bitofbreeze opened 7 years ago

bitofbreeze commented 7 years ago

Here's the stack error.

[Error] TypeError: $({ len: 0 }).animate is not a function. (In '$({ len: 0 }).animate', '$({ len: 0 }).animate' is undefined) animate (jquery.drawsvg.js:101) (anonymous function) (jquery.drawsvg.js:129) each (jquery-3.1.1.slim.min.js:2:3036) (anonymous function) (index.html:873) dispatch (jquery-3.1.1.slim.min.js:3:10565) trigger (jquery-3.1.1.slim.min.js:3:30395) (anonymous function) (jquery-3.1.1.slim.min.js:3:30907) each (jquery-3.1.1.slim.min.js:2:3036) h (bootstrap.min.js:7:1953) _transitionComplete (bootstrap.min.js:7:2910) l (bootstrap.min.js:7:2299) _activate (bootstrap.min.js:7:2369) show (bootstrap.min.js:7:1974) (anonymous function) (bootstrap.min.js:7:3117) each (jquery-3.1.1.slim.min.js:2:3036) _jQueryInterface (bootstrap.min.js:7:2961) (anonymous function) (bootstrap.min.js:7:3289) dispatch (jquery-3.1.1.slim.min.js:3:10565)

bitofbreeze commented 7 years ago

Realized it requires full jquery, so I don't get the error now, but there is no animation

bitofbreeze commented 7 years ago

Here is the image I want to animate:

`<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="256px" height="58px" viewBox="0 0 256 58" enable-background="new 0 0 256 58" xml:space="preserve">

`