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

What is Framer? Join the Community
Return to index
Charlie Sneath
Posted May 22 - Read on Facebook

I'm trying to stick a child element to the top of the window (superLayer = null) when it gets there via scroll.

When I trigger this event (scroll.scrollY > layer.y) and set it to stick (layer.superLayer = null, layer.y = 0), the parent layer scrolls back to the top.

Is there a better way to handle sticky elements?


Charlie Sneath

See example: you can see the jump when the larger section goes from 1 > 2 > 1.

Read the entire post on Facebook