Screen Designer uses a canvas set to width: fill parent, and image sprite containing a wide image.
Have your program change the sprite width in increments that suits you. I used, 10 pixels per step. I could not get dragging the background to work, though.