Need Help with Image Transition Interaction: Dragging Line to Reveal New Image
Hello folks,
I am trying to create a reveal interaction, as seen in the second video below. I want the mask to work like it does in Figma (although it is not a prototype).
The only solution that came to my mind was to scale the container of the image -which works as a mask- and move the top image inside it in the opposite direction simultaneously to achieve that revealing animation. The problem with my solution (apart from it feels wrong) is that the position of the top image doesn’t match with the below image and this causes a weird double vision effect as seen in the first video.
The other problem I have is about the dragging action. Again as seen in the first video, I am dragging and at the same time scrolling by accident. Is there a solution for it?
I would appreciate your help. Thank you.