Thanks @Elusien
BTW, it also works on animated gifs.
Below an example where the background is just a still but I pan using keyframes.
Then use an animated gif in the html file.
The animated gif has the frames to simulate walking and the actual “offset” is done with the moving background still.
Files:
Animation.zip (209.6 KB)
Result: