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

What is Framer? Join the Community
Return to index
Isaac Kim
Posted Feb 21 - Read on Facebook

How do you make a scroll component locked so it can only scroll down? Essentially I want to remove the 'slack' or 'bounce' at the top of my scroll component.

Thanks!

3 Comments

Lukas Guschlbauer

On my phone and just guessing in the blue:
If scroll.scrollY <=0
scroll.scroll = false

Orfeo Chen

scroll.onScroll ->
if scroll.scrollY > 0
scroll.scrollY = 0

Isaac Kim

Lukas yours definitely stops it from scrolling down initially but if i scroll up and then back down with some momentum, it still "tugs" a bit and shows the background before snapping the Y back to 0.

Thoughts on this?

Read the entire post on Facebook