make dom elements behave like magnets
See example
-
include the jquery-magnetizer.js below jQuery (tested with 1.7.2, should work with earlier version)
-
add $(".element").magnet()
fieldLength = accepts number
This is the maximum distance at which the object will begin to react to the mouse