Detect if animated object touched another object in DOM
问题 I have a number of divs fixed in the dom in a circular shape, and another div orbiting around them I want to know if the orbiting div touched any one of them to take specific action using javascript the css code responsible for making the #token div orbit around .stations divs using keyframes the javascript code makes the .stations divs in a circular shape $("document").ready(function() { //arrange stations in a circle var block = $("#rotator .station").get(), increase = Math.PI * 2 / block