admin管理员组文章数量:1390932
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
本文标签: javascriptError Zeptojs Animate Is Not A FunctionStack Overflow
版权声明:本文标题:javascript - Error: Zeptojs Animate Is Not A Function - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744573769a2613496.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论