0

我创建了一个圆圈,我希望他在鼠标靠近时移动,就像磁铁效应一样(所以我放在他下面的元素会暴露出来)。

这是小提琴链接:

http://jsfiddle.net/Cfsamet/5xFVc/1/

一些起始代码:

$('#circle').mouse(function(){
    $(this).();
});
4

1 回答 1

0

You might use Perimeter.js (http://github.e-sites.nl/perimeter.js/). This does exactly what you want to do.

于 2013-11-10T15:22:33.670 回答