How to do "Translating to a coordinate" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to do "Translating to a coordinate"

So, i have a svg circle. I want to translate it to a new coordinate. Can't use pixel since it messes up everything. Read the documentation slightly theres talk about viewBox viewport and PreserveAspectRatio.. And none of them made sense to me rn. If anyone has a simpler explanation please let me know.

15th Nov 2018, 2:28 AM
Akib
Akib - avatar
2 Answers
0
Do you have sample code we can work with? Would be nice to know the starting point, the desired end result, and any preferred method of getting there (i.e. animation, onclick, etc.). For what it's worth, here's one I worked on recently for someone else with polyline: https://code.sololearn.com/Wpti4UKXemSW/?ref=app
15th Nov 2018, 5:44 AM
Janningā­
Janningā­ - avatar
0
https://code.sololearn.com/WFWgJI5xCxNf/?ref=app Here is one I should mention that I am trying to move the starting circle to the end circle in a straight line.
15th Nov 2018, 7:15 AM
Akib
Akib - avatar