You could put any of those lines into a code block anywhere you would want the effect to happen. You could do it on a keypress, for example.
But be aware that in will move the "screen" itself, not individual elements. It will leave black background behind. That being said, it could be useful for scene transitions or for some interesting effects.