使用 jQuery 实现效果
好的 - 我们的任务可能是一个不可能的(或者至少是一个潜在的噩梦)场景。
需要尽可能接近地通过 HTML/JavaScript 再现类似 PowerPoint 的效果(规范又大又难看,所以我就不详细介绍了)。
最终,我正在寻找一个坚实的起点。我在许多项目中都使用了 Prototype/Scriptaculous 以及 jQuery,并且根据我所看到的,看来 jQuery 有更多可用的插件,所以我倾向于使用 jQuery。
任何人都可以向我指出一些插件、文章或其他任何可以帮助我加速这方面研究的内容,以便我可以向我的客户定义什么可以做,什么不能做。
当然,欢迎 jQuery 专家提出任何其他建议。
谢谢 -
Ok - have been tasked with possibly an impossible (or at least a potentially nightmarish) scenario.
Need to come as close as possible to reproducing PowerPoint-like effects via HTML/JavaScript (the spec is large and ugly, so I will spare you the details).
Ultimately, I am looking for a solid launching point. I have used both Prototype/Scriptaculous as well as jQuery in many projects, and based on what I am seeing, it appears jQuery has the more plug-in available, so am leaning towards using jQuery.
Can anyone point me to some plug-ins, articles, or anything else that would help me in accelerating the research on this so I can define to my client what can and cannot be done.
Any other suggestions from you jQuery gurus are welcome of course.
Thanks -
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
“类似 PowerPoint 的”效果是什么意思?如果您指的是幻灯片之间的动画,您应该查看
What do you mean with "PowerPoint-like" effects. If you mean animations between slides you should look into
我当然也会看看jQuery UI,它增加了许多效果。 请在此处查看当前列表。单击每个链接可以查看几个演示,其中有很多选项可供选择,其中一些是 powerpoint 风格的。
例如,尝试此处下拉列表中的各种选项。
I would certainly look at jQuery UI as well, which adds a number of effects. See here for a current list. Click on the link for each to see several demos, there are quite a few options for some that are powerpoint-ish.
For example, try the various options in the dropdown here.
jQuery 文档非常好:
jQuery animate 文档
但是,如果您试图实现非常复杂的效果,您几乎肯定会从使用中受益一个不同的框架。 jQuery 是一个很棒的工具 - 特别是对于 DOM,但动画并不是它的强项。
MooTools 有一个特别好的动画库(MooTools 最初是一个 JavaScript 动画框架),其中包含许多核心模块,这些模块为您提供了灵活的工具来自己创建复杂的动画链,以及许多官方和社区提供的插件。我的建议是至少先看一下。您当然可以在 jQuery 中实现这一目标,但您会让自己变得更加困难!
The jQuery documentation is very good:
jQuery animate docs
However, if you are trying to achieve very complex effects you will almost certainly benefit from using a different framework. jQuery is a fantastic tool - particularly with the DOM, but animation isn't its strongpoint.
MooTools has a particularly good animation library (MooTools began life as a JavaScript animation framework) with a number of core modules that give you flexible tools to create complex animation chains yourself as well as a number of official and community-provided plugins. My recommendation would be to at least have a look at that first. You can certainly achieve this in jQuery but you will be making it more difficult for yourself!
我的 0.02 美元:如果您正在做复杂的效果,您需要运行最快的库,而不是最容易使用的库。
My $0.02: If you're doing complex effects, you need the library that runs the fastest, not the library that is the easiest to work with.