Any easy way to detect element if its over another element ?
I'm using CSS3 transform to move a element. (because)
Example : - All element size 10x10 pixels
- Element#A
transform : translate(170px, 180px)
<-- This element can controll for moving - Element#B
transform : translate(200px, 200px)
How to detect is element#A over some element ?
My full demo with jQuery element controller : http://jsfiddle.net/ndZj5/
var over = false;
// do something with `over` to `true` to detect this...
if(!over) {
my.css('transform','translate('+x+'px,'+y+'px)');
}
Take a tour on my demo , press keyboard arrows to controll