Scroll driven mask fill with figma

Hi everyone!

Been trying to break this egg for a while. I’m trying to get a layer moving behind a mask driven by the scroll. The idea is that the masked layer gets filled gradually by the underlying layer as the user scrolls/travels down the page.

I need the underlying layer to essentially scroll follow while the top mask layer stays still. I haven’t been able to make it work in practice.

Thanks for the tips!

1 Like