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?