#detect collision between two divs

4 messages · Page 1 of 1 (latest)

soft dirge
#

Qwik doesn't block you, but it doesn't provide anything to make it easier (except performant useVisibleTask$ hook so that it doesn't run when it is not visible).

I would think about using some animation library that has collision detection. 🙂

elfin thunder
#

well, i do. However, whether I'm trying to use framer motion, i got many problems using react. For instance, it does not execute useEffect correctly, so i was thinking about other solutions.

soft dirge
#

I am not sure if MotionOne does have collision detection. But you can give it a try.

elfin thunder
#

Alright, I was thinking about the code again and i found a solution