Reveal Mask on Mouse Move with Slider

Hello!
I’m making a website for a 3D AR service app and I want to do

this interaction

It’s basically an image mask reveal with a button in shape of a bar, but I cannot even make the animation on mouse movement (not hover) work and couldnt find any helpful tutorial on how to do this. Any tips?

Thanks in advance :slight_smile: