0

I am having a div shaped like a ball and want to make its gravity, I thought to make its top keep on reducing by 1px and stop reducing when it is touching something from bottom.

Does anyone has a idea to sort this problem through without using the canvas element?

  • It's not checking for overlapping elements that's needed. The [`inside()` function](https://stackoverflow.com/questions/12066870/how-to-check-if-an-element-is-overlapping-other-elements#answer-19614185) is what he's looking for – AcidResin Jul 12 '21 at 06:15

0 Answers0