Functions | |
setInterval ( 'var newScrollY=Zapatec.Utils.getPageScrollY(); '+ 'if(newScrollY!=oldScrollY){ '+ 'Zapatec.ScrollWithWindow.handler(newScrollY); '+ '}', 50) | |
Variables | |
Zapatec Utils | getPageScrollY |
Zapatec | ScrollWithWindow = {} |
Zapatec ScrollWithWindow | list = [] |
Zapatec ScrollWithWindow | stickiness = 0.25 |
Zapatec ScrollWithWindow | register |
Zapatec ScrollWithWindow | unregister |
Zapatec ScrollWithWindow | handler |
var | oldScrollY = Zapatec.Utils.getPageScrollY() |
|
|
|
A generic Utils function that returns the current scroll position. |
|
|
|
|
|
|
|
Registers a given object to have its style.top set equal to the window scroll position as the browser scrolls.
|
|
Unregisters a given object.
|
|
For internal use only. Called each time the window is scrolled to set objects' positions.
|
|
|