I searched online but couldn't find an answer, so I'm turning to you for help. How can I identify which HTML element is centered on the screen? Specifically, I need to locate an element with a right:0
position.
The element is being positioned like this:
$("#element").animate({right: 0}, 50);
I have multiple elements moving around the screen, and at certain times they stop moving. Some are out of view, but this one is centered and visible. Also, its width is set to 100%
. Any suggestions on how I can detect this using a DIV
tag in the HTML?
Note: All elements are contained within a #container
.