In the example on the site, the comment below actually explains the behavior
if (position < -1) {
view.setAlpha(0);
}
-1, position if, ( ). -Infinity < position < -1 , , wille :
else if (position <= 1) { // [-1,1]
//true for when position is less than or equal to 1
//but only run when code is greater than or equal to -1
//as this is an else-if
} else { // [1,+Infinity]
//true for when position is greater than 1
}
position , .
, , -1 , . , , .