最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Error: Zeptojs Animate Is Not A Function - Stack Overflow

programmeradmin3浏览0评论

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
Add a ment  | 

1 Answer 1

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

发布评论

评论列表(0)

  1. 暂无评论