To create a visually appealing animation of light moving horizontally across the page, you can utilize two background images. One image will serve as the fully illuminated scene, while the other will act as a black shadow with alpha transparency to allow the lit image to shine through.
Begin by setting the full lit image as the background-image:
for the <html>
element, and assign the shadow image as the background-image:
for the <body>
tag.
For animation effects, adjust the background-image-position of the shadow image. For added visual interest, consider implementing a Parallax effect using tools like jParallax (http://stephband.info/jparallax/). This technique involves moving the "full lit" image in conjunction with the shadow image movement to create an engaging and dynamic display.