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?

1 Comments

Charlie Sneath

See example: you can see the jump when the larger section goes from 1 > 2 > 1. http://cl.ly/image/2c3d1f2g3K0r

Read the entire post on Facebook