Skip to content

Commit 6511970

Browse files
committed
comment documenting ParallaxController function
1 parent 60adeb4 commit 6511970

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/libs/ParallaxController.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ import {
44
testForPassiveScroll,
55
} from '../utils/index';
66

7+
/**
8+
*
9+
* The global controller for setting up window scroll/resize
10+
* listeners, managing and caching parallax element positions,
11+
* determining which elements are inside the viewport based on
12+
* scroll position, and then updating parallax element styles
13+
* based on min/max offsets and current scroll position.
14+
*
15+
*/
716
function ParallaxController() {
817

918
// All parallax elements to be updated

0 commit comments

Comments
 (0)