Reveal two adjacent images by sliding with the mouse

Is there a way to have two images side by side but you can wipe with the mouse so one image is reduced and the other revealed more? Like a before and after but both images remain on screen depending on how far you slide the mouse.

Please see this example of windows and the sky:
Immersive Classroom for Inclusive Learning.

Hi,

Please take a look at the project below to see if it meets your needs.
We’re using the lib here: GitHub - kylewetton/image-compare-viewer: Compare before and after images, for grading and other retouching for instance. Vanilla JS, zero dependencies.
You can locate the script in the slide’s On Load event, where you can also modify the group name as needed.
compare-image.approj (520 KB)

Regards,