Hi, framers! I'm learning how to prototype sticky header.I just wonder what is "offset.y"?
And why we need to do something like this: "scroll.on Events.Move, (offset) ->
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. :-)