5

zeptojs document here when I use $().animate function throw error like below:

TypeError: $(...).animate is not a function

And the version I used is the page provides.

Community
  • 1
  • 1
Joyce Lee
  • 309
  • 2
  • 10
  • Have you [downloaded](http://zeptojs.com/#download) it and included it in your page? Looks like you need to use a selector in [`$()`](http://zeptojs.com/#$()) too – Phil Feb 18 '14 at 02:30
  • @Phil: It is downloaded (probably). If it wasn't, then the error would be `$ is not a function` or `$ is not defined`. – rvighne Feb 18 '14 at 02:35
  • 1
    animate is not in main zepto file but a module. So you need to download the fx.js module file at http://zeptojs.com/#modules and import it as a script in your file – Nicolas Janel Jul 21 '14 at 17:13

1 Answers1

6

$(...).animate is in the zepto fx module. It's no longer in the base main distribution of zepto!

http://zeptojs.com/#modules

Axel
  • 76
  • 1
  • 2