用重力效果拖动元素 [英] Drag elements around with gravity effect

查看:77
本文介绍了用重力效果拖动元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想完成类似于photoshop.com和本网站的内容: http:/ /mrdoob.com/projects/chromeexperiments/google_gravity/

I want to accomplish something similar to what photoshop.com has and this site here: http://mrdoob.com/projects/chromeexperiments/google_gravity/

有没有人知道如何使用javascript(最好是jquery)?

Does anyone know how to do this with javascript (preferably jquery) ?

推荐答案

可以在 http://www.inf.ufrgs.br/~rcpinto/physics/ 并从 http://plugins.jquery.com/project/jphysics 或来自Google的 http://code.google.com/p/jqueryphysics/

A jPhysics demo can be found online at http://www.inf.ufrgs.br/~rcpinto/physics/ and downloaded from http://plugins.jquery.com/project/jphysics or from Google at http://code.google.com/p/jqueryphysics/

这篇关于用重力效果拖动元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆