Get the position of a scrolling container

4,321
2
114
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

Sticky Scrolling Sidebar Example

5,710
0
82
An example of a sticky scrolling sidebar (website)

Akis Ioannou

Next