Scroll Horizontally Within Window
I am looking to have the window of my program follow a Mario img instead of scrolling, in essence removing the slide bar and somehow keeping the window focused on the Mario character within a range (like any 2D side-scrolling video game). Any ideas on how to do this using jQuery or HTML?
You can find my program
. As seen, I have the upper and lower values I want the window to show, but I do not have a way of moving the window.
It'd be best to move a coin counter, the music play/pause button, and anything else I add at the top of the screen with the window. Could a container `div` do this? Could I just use CSS movement to effect all the elements in the div?