DEV Community


I need help with a changement

・1 min read

Hi guys! I would like to have an information.
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?

Discussion (0)