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.
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.
Share Improve this question edited Jun 20, 2020 at 9:12 CommunityBot 11 silver badge asked Feb 18, 2014 at 2:19 Joyce LeeJoyce Lee 3092 silver badges10 bronze badges 3-
Have you downloaded it and included it in your page? Looks like you need to use a selector in
$()
too – Phil Commented Feb 18, 2014 at 2:30 -
@Phil: It is downloaded (probably). If it wasn't, then the error would be
$ is not a function
or$ is not defined
. – rvighne Commented Feb 18, 2014 at 2:35 - 1 animate is not in main zepto file but a module. So you need to download the fx.js module file at zeptojs./#modules and import it as a script in your file – Nicolas Janel Commented Jul 21, 2014 at 17:13
1 Answer
Reset to default 6$(...).animate is in the zepto fx module. It's no longer in the base main distribution of zepto!
http://zeptojs./#modules