Answer the question
In order to leave comments, you need to log in
How to make the effect of movement, on the image, in the canvas'a window?
For example, I have a limited canvas, smaller width / height than the loaded image in it
Guys, how to make the effect of movement, on the image, in the canvas window? In other words, the canvas window does not change, but we "run" around the picture. Thank you.
Answer the question
In order to leave comments, you need to log in
If you are talking about vertical and horizontal scrolling, then you can wrap the canvas in a div and give it a style:
.img_wrap {
width: 500px;
height: 250px;
overflow: hidden
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question