我如何实现 Dipity Timeline UI?
如果您还没有听说过 Dipity,它是一个网络应用程序,允许人们在浏览器上创建时间线。这是时间线的示例: http://www.dipity.com/StevePro/Steve-Jobs- Life-and-Career/
我如何实现您在上面链接中看到的时间线功能?更具体地说,在没有 Flash 的情况下,如何实现缩放、动量滚动和其他 UI 元素?
根据您的专业知识,如果我想制作一个可以像上面看到的那样放大/缩小、滚动和全屏显示的画布,我应该考虑哪些库或项目?
预先感谢您的帮助。
If you have not heard of Dipity, it is a web app that allows people to create timelines on a browser. Here is an example of a timeline:
http://www.dipity.com/StevePro/Steve-Jobs-Life-and-Career/
How could I implement the timeline functionality that you see in the above link? More specifically, how is the zooming, momentum scrolling, and other UI elements achieved, without Flash?
Under your expertise, what libraries or projects should I be looking at if I want to make a canvas that can zoom in/out, scroll, and go fullscreen like the one you see above?
Thanks in advance for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您可以查看源代码并看到他们使用了大量 jQuery 和 jQuery 插件:
您不会得到任何“执行 A、B 和 C 就完成了”的信息,因为它们有一个 <那里的用户界面非常复杂。我的建议是从其中的一个部分(画布或鼠标滚轮事件)开始,一次构建一小部分,或者找到插件来构建这些部分,然后将它们全部放在一起来构建你想要的东西。
几乎所有软件的构建方式都是一样的。您可以使用自己的构建块,并将它们堆叠起来以创建您自己的独特作品。
First off, you can view source and see that they're using a lot of jQuery and jQuery plugins:
You're not going to get any "do A, B, and C and you're done", as they have a very complex UI going there. My suggestion would be start on one piece of it (canvas, or mouse wheel events) and just build out a small piece at a time, or find plugins to build the pieces, and then put them all together to build what you're after.
That's the same way pretty much all software is built. You take your individual building blocks, and stack them up to create your own unique creation.