Spaces is a community where you can showcase your interactive prototypes Sign up

Get the position of a scrolling container 3,259

If you need to get the Y position of a vertically scrolling container, create a text box. Then on the container scroll trigger, set a variable that evaluates the numerical callback value from the event (Y position). Then add a callback that changes the text property of the text box by reading from the variable.

Todd Siegel
Share 111 4
Published January 30th, 2016 in Interactive, Input

Comments (2)

You must be signed in to join the conversation.
E Hamilton @StoniiLabworks · Sep 4, 2018
this is clever and very useful for service industry nerds.
Alexander Mickus @protonerds · Feb 1, 2016
Great job! Thanks Todd :)

More by Todd View all

Staff picks