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

What is Framer? Join the Community
Return to index
Jiaxin Chen
Posted Aug 26 - Read on Facebook

Hi, framers!
I'm learning how to prototype sticky header.
I just wonder what is "offset.y"?

2 Comments

Jiaxin Chen

And why we need to do something like this: "scroll.on Events.Move, (offset) ->

Benjamin Den Boer

Hey Chen Acmenyz - the first argument here returns an object, containing the x & y values of the layer. You can name it any way you'd like. You'll also often see it named "event" in other prototypes. If you "print offset" within the Event, and then move the layer, you can see the returned object values. You can also use it to retrieve just one of these values: offset.x or offset.y. :-)

Read the entire post on Facebook