Bruno
Bruno

Reputation: 6000

Fire an event every time part of a div overlap part of another div

I've two (but maybe more) DIVs, animated through jQuery; so now they are running all over my screen, following pseudo random paths.

I want to fire an event every time part of a DIVoverlaps part of another one. Any ideas?

Upvotes: 0

Views: 678

Answers (1)

alexarno
alexarno

Reputation: 422

You could use something like this http://sourceforge.net/projects/jquerycollision/ and check for collisions after each animation step.

Upvotes: 3

Related Questions