Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question