For example, an element when you click on it (or on a timer, or something else) changes its position (coordinates). Or resizes.

How can this be traced?

  • what do you mean by "how to track" ?? - ampawd
  • find the item by id / class / name and get its data - Alexey Shimansky
  • @ampawd, I mean the event. Those. when it starts moving or resizing. Like, for example, mouseup. - user203925
  • @AlekseyShimansky, It’s not clear exactly when you need to get his data. Those. he can start the movement postponed, or after some other events - user203925
  • @ssfn well, hang up the tracking function on setInterval. This function will check the current coordinates of the element relative to the previous ones. If they are not equal, it means that it is moving and it means that you are taking some kind of action - Alexey Shimansky

0