DEV Community

AndyBullet
AndyBullet

Posted on • Updated on

HTML: I have a problem with the canvas.

Hi guys! I have a problem.
https://pastebin.com/68recZYa
In this code, when I click "Move" button, the image in "myDIV" div go ahead, and the viewport follow him. But I would like that this method would work in a canvas instead of a div. Can you tell me a how can I do it?

Top comments (0)