This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Lawrence Weyman-Jones
Posted Sep 24 - Read on Facebook

Hi, does anyone have experience in using scrollToClosestLayer? I have a series of images within a scroll. I want the content to snap to the closest one once the scroll velocity slows down past a certain point. The only way I can seem to trigger it at the moment is if I use:
Scroll.on Events.ScrollAnimationDidEnd, ->
Scroll.scrollToClosestLayer(0, 0)

This means waiting right till the scroll has stopped which can take some time. Any suggestions greatly appreciated.

1 Comments

Krijn Rijshouwer

Hey Lawrence Weyman-Jones!

For sure! Here's a little 2m example ;) — http://share.framerjs.com/ibuikypnlqxr/

Read the entire post on Facebook