Each story item turns blue when it enters the viewport and green when it becomes "active" at the triggerpoint (red line), which by default is the top of the viewport. "Active" is exclusive, so only one item can be active at a time.

Our code here
1
2
3
4
5
6
7
8
9
10
11
12
13