The artwork is more complicated than the example, but you get the idea.
It does work okay unless I scale the window. When I scale the window down it seems like hypeGestureXPosition gets it’s relative position from the original canvas size when I drag the slider.
- I need the whole image to be visible on the background. No cropping. I used an example from here (Responsive reveal of a picture) but you didn’t scale the background which I think is the problem in my case.
- Ideally I’d like the slider to stop at the end of the image. Currently it goes past the border of the animation
Is there a way to make it work if the canvas is scaled down? Seems like I need to adjust hypeGestureXPosition to reflect the scaling?
REVEAL 2.zip (684.8 KB)