New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get continues position (x,y) from moving SVG object #855
Comments
Why basic JavaScript to obtain position doesn't work? It should work. Please post a code example.
You can also animate plain object with anime.js and in |
Hello Sorry for late reply, meanwhile I had already obtained what I urgently needed with 'vector.js'. Will definitely try your suggestion here one of these days. Strange though that this should be done via a 'document.querySelector' on the element? Thanks! |
Is your feature request related to a problem? Please describe.
The problem is that I cannot find anywhere in the documentation how to obtain continuous position (x,y) of a moving object. And to further use this position (x,y) in another Javascript. So I assume this is not (yet) implemented in Anime.js.
Describe the solution you'd like
A way to continuously obtain the position (x,y) of a moving object and a way to use this in another Javascript.
For now to be used specifically in the SVG Motion path example of yours but would be useful in different projects using Anime.js.
Describe alternatives you've considered
Tried using basic Javascript to obtain the position of the animated div but doesn't work so far.
Thanks to help me out on this!
The text was updated successfully, but these errors were encountered: