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

What is Framer? Join the Community
Return to index
Randy Lutcavich
Posted Aug 06 - Read on Facebook

How can I get onScroll to be called when a scroll object is animating to a new scrollX position?


Randy Lutcavich

Randy Lutcavich

This doesn't get called

Amrit Mazumder

If you need the value for layer.scrollX when you animate, try listening for changes in the x property of the content layer of the scroll. (scroll.content.on 'change:x', -> print scroll.scrollX)

Randy Lutcavich

Thanks!! That did the trick.

Gregory J. Orton

Or use on 'move'

Randy Lutcavich

Move didn't work when I tried it.

Read the entire post on Facebook