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

Get the position of a scrolling container 3,756

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
@productevangelist
Share 114 4
Published in Interactive, Input

Comments (2)

You must be signed in to join the conversation.
89
8e1cfb3b-504e-11ed 9221-0e76797a4f7b @StoniiLabworks · Sep 4, 2018
this is clever and very useful for service industry nerds.
8ea06e34-504c-11ed 9221-0e76797a4f7b @protonerds · Feb 2, 2016
Great job! Thanks Todd :)

More by Todd View all

Staff picks