There is a problem with the attribute value in the case of js motion displacement offsetX.

clipboard.png
how does the offsetX restore the attribute value when setting the distance for the element to move? how does the position run off?


you don't see what the problem is. You need to carefully sort out the logic of your program.

Menu