X
X
xenonhammer2020-05-04 02:31:50
JavaScript
xenonhammer, 2020-05-04 02:31:50

Can you help me calculate the coordinates of an element?

Everything is fine, only target gives undefined. It seems that .offsetTop/Left should work as I expect, but something goes wrong...
Also, inter is not removed when clearInterval
What do you advise to mash in the code?


See the Pen
Example by Arthur ( @xenonhammer )
on CodePen .

"/>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question