HTML: I have a problem with the canvas.

github logo Updated on ・1 min read

Hi guys! I have a problem.
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?

twitter logo DISCUSS
Classic DEV Post from Jun 24

What If I Want My Website to Last for 100 Years?

AndyBullet profile image