How to change the coordinates of the element without css?

as I understand from getBoundingClientRectcannot be assigned a coordinate value.

and after a gamer.style.left+= mario.left+"px";

Cho is not really me out

It's not the canvas.
July 8th 19 at 16:40
3 answers
July 8th 19 at 16:42
transform: translate(10px, 20px);
codepen.io/anon/pen/ZOGVWd

In addition to CSS in any way
July 8th 19 at 16:44
No CSS, Nothing. CSS - this is the display style, he sets the coordinates and everything.
The same as no legs can't jump.

If you need to move the background:

style="background-position: 12.0333 20.1333 px px;"
July 8th 19 at 16:46
What is +=? In the same line. Be like "16px20px"
Where is it?....
there are all elements positioned. - Rudy.Williamson commented on July 8th 19 at 16:49
: you line put. You can do so:

gamer.style.left = (parseFloat(gamer.style.left) + mario.left) + "px";
- Jaiden.Ratke commented on July 8th 19 at 16:52
: so, too, does not work.
and generally the question was in addition to CSS how to change. - Rudy.Williamson commented on July 8th 19 at 16:55
: no way. And you can view the complete code? -What is and what is mario gamer. - Jaiden.Ratke commented on July 8th 19 at 16:58
prntscr.com/bcoogz - Rudy.Williamson commented on July 8th 19 at 17:01
: well then, it's not mario.left, and mario.speedMove. - Jaiden.Ratke commented on July 8th 19 at 17:04
: prntscr.com/bcvqqg

why. - Rudy.Williamson commented on July 8th 19 at 17:07

Find more questions by tags JavaScript