@ marcio-junior's answer ( https://stackoverflow.com/a/166168/ ) works fine, but I wanted to explain to those who don’t understand why it works:
@ a7omiton Along with @ psyren89's answer to your question
Think of the outer div as the movie screen, and the inner div as the parameter in which the character is around the movie. If you looked at this setting personally, that is, without a screen around it, you could see all the characters at once, because your eyes have a fairly large field of view. This would mean that the installation should not have scrolled (move left-right) so that you can see it more, and therefore it will remain motionless.
However, you are not in the setting personally; you are viewing it from your computer screen with a width of 500 pixels, while the setting has a width of 1000 pixels. Thus, you will need to scroll (move left-right) the parameter to see more characters inside it.
I hope this helps anyone who is lost by the principle.
lwdthe1 May 26 '17 at 16:42 2017-05-26 16:42
source share