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

What is Framer? Join the Community
Return to index
George Otsubo
Posted Aug 18 - Read on Facebook

Hello, trying a side parallax thing but it jumps the minute you start scrolling, don't think this is the right way to approach this. Also not really sure how 'do' works either... if someone can help explain how that works...any help is appreciated!


Eelco Lempsink

Hi George – the ‘do’ is hard to explain without a bunch of programming jargon, but the main takeaway is that you use it if you want to use the variable created in the loop (‘image’) in a callback (‘onMove’). We have a website update upcoming with an improved programming section that explains this a bit more.

Now, on to the problem: you start by aligning the image in the center, but then when you set the offset, you start the x position at 0. Because the images are wider than the page, it jumps. The fix is easy, wrap the offset in and it will be relative to the center instead of the origin:

Read the entire post on Facebook