0

How do you get Javascript to influence Html?

I want to move a shape around the screen using the SVG circle in html and have a while loop in javascript influence the coordinates. I dont know much about the script tag sadly.

14th May 2018, 12:43 PM
Evan Martine
2 ответов
+ 5
Firstly manipulating svg with JavaScript can be laggy and unsmooth,thats why we have canvas. Your request is quite hard,not something i can explain in a comment.Svg has its own <animate> tag,why not use that?
14th May 2018, 12:56 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 1
Yeah, that was more of a case that I wouldnt have known was possible if I didnt research it. Thanks for the tip!
14th May 2018, 12:59 PM
Evan Martine