sdaw
3 months ago
hello - no supporter rank needed! but some math is involved. basically the background is large (like 8000px or something like that) with the scrollbars hidden using CSS. then using javascript you can track the mouse clicking and dragging using something called mouseevents (https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent) which gives you the motion of the mouse
sdaw
3 months ago
you can then use this motion and something called CSS transform translate (https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/transform-function/translate) to move the canvas around related to the mouse movement.
sdaw
3 months ago
here is some starter code you can use view page source to see the code https://litter.catbox.moe/vt9pwtno8qb4ftbr.html
sdaw
3 months ago
hello so glad to hear that!! and yes absolutely you can post a youtube video. shoot over the link when you upload it would be cool to hear what you made.
hello thanks so much!! if you make anything definitely send it over